From ba5200b50692b889f59df9f37c913b3ef85045c8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 21 Jan 2017 19:46:49 -0800 Subject: Ditch client code --- build/build.js | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 build/build.js (limited to 'build/build.js') diff --git a/build/build.js b/build/build.js deleted file mode 100644 index b3c9aad4..00000000 --- a/build/build.js +++ /dev/null @@ -1,36 +0,0 @@ -// https://github.com/shelljs/shelljs -require('./check-versions')() -require('shelljs/global') -env.NODE_ENV = 'production' - -var path = require('path') -var config = require('../config') -var ora = require('ora') -var webpack = require('webpack') -var webpackConfig = require('./webpack.prod.conf') - -console.log( - ' Tip:\n' + - ' Built files are meant to be served over an HTTP server.\n' + - ' Opening index.html over file:// won\'t work.\n' -) - -var spinner = ora('building for production...') -spinner.start() - -var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory) -rm('-rf', assetsPath) -mkdir('-p', assetsPath) -cp('-R', 'static/*', assetsPath) - -webpack(webpackConfig, function (err, stats) { - spinner.stop() - if (err) throw err - process.stdout.write(stats.toString({ - colors: true, - modules: false, - children: false, - chunks: false, - chunkModules: false - }) + '\n') -}) -- cgit v1.2.3