chore: deploy site in netlify.app (#12)

This commit is contained in:
Amour1688
2020-06-17 19:57:37 +08:00
committed by GitHub
parent fe4f0ff48f
commit 620496f790
7 changed files with 367 additions and 59 deletions

13
scripts/site.js Normal file
View File

@ -0,0 +1,13 @@
const webpack = require('webpack');
const webpackConfig = require('./webpack.base.conf');
webpack(Object.assign(webpackConfig, { mode: 'production', devtool: false }), (err, stats) => {
if (err) throw err;
process.stdout.write(`${stats.toString({
colors: true,
modules: false,
children: false,
chunks: false,
chunkModules: false,
})}\n\n`);
});