forked from AkkomaGang/akkoma-fe
remove nonsense dep
This commit is contained in:
parent
24b9e350e2
commit
1092d43802
1 changed files with 29 additions and 29 deletions
|
@ -1,36 +1,36 @@
|
||||||
// https://github.com/shelljs/shelljs
|
// https://github.com/shelljs/shelljs
|
||||||
require('./check-versions')()
|
require("./check-versions")();
|
||||||
require('shelljs/global')
|
require("shelljs/global");
|
||||||
env.NODE_ENV = 'production'
|
env.NODE_ENV = "production";
|
||||||
|
|
||||||
var path = require('path')
|
var path = require("path");
|
||||||
var config = require('../config')
|
var config = require("../config");
|
||||||
var ora = require('ora')
|
var webpack = require("webpack");
|
||||||
var webpack = require('webpack')
|
var webpackConfig = require("./webpack.prod.conf");
|
||||||
var webpackConfig = require('./webpack.prod.conf')
|
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
' Tip:\n' +
|
" Tip:\n" +
|
||||||
' Built files are meant to be served over an HTTP server.\n' +
|
" Built files are meant to be served over an HTTP server.\n" +
|
||||||
' Opening index.html over file:// won\'t work.\n'
|
" Opening index.html over file:// won't work.\n",
|
||||||
)
|
);
|
||||||
|
|
||||||
var spinner = ora('building for production...')
|
var assetsPath = path.join(
|
||||||
spinner.start()
|
config.build.assetsRoot,
|
||||||
|
config.build.assetsSubDirectory,
|
||||||
var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory)
|
);
|
||||||
rm('-rf', assetsPath)
|
rm("-rf", assetsPath);
|
||||||
mkdir('-p', assetsPath)
|
mkdir("-p", assetsPath);
|
||||||
cp('-R', 'static/*', assetsPath)
|
cp("-R", "static/*", assetsPath);
|
||||||
|
|
||||||
webpack(webpackConfig, function (err, stats) {
|
webpack(webpackConfig, function (err, stats) {
|
||||||
spinner.stop()
|
if (err) throw err;
|
||||||
if (err) throw err
|
process.stdout.write(
|
||||||
process.stdout.write(stats.toString({
|
stats.toString({
|
||||||
colors: true,
|
colors: true,
|
||||||
modules: false,
|
modules: false,
|
||||||
children: false,
|
children: false,
|
||||||
chunks: false,
|
chunks: false,
|
||||||
chunkModules: false
|
chunkModules: false,
|
||||||
}) + '\n')
|
}) + "\n",
|
||||||
})
|
);
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue