Hello Webpack4

This commit is contained in:
masnn committed 2020-04-14 16:42:58 +08:00
1 parent 0aa6183804
commit 06f1b5bc62
12 files changed
+350 -548

No files matched your search

+1 -7
View File
@@ -1,4 +1,4 @@
/* eslint-disable */
/* eslint-disable import/no-extraneous-dependencies */
import fs from 'fs';
import webpack from 'webpack';
import root from './utils/root';
@@ -8,12 +8,6 @@ export default function ({ watch, production }) {
const compiler = webpack(webpackConfig({ watch, production }));
compiler.apply(new webpack.ProgressPlugin());
const outputOptions = {
colors: true,
errorDetails: true,
optimizationBailout: production,
};
function compilerCallback(err, stats) {
if (err) {
console.error(err.stack || err);