mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
Hello Webpack4
This commit is contained in:
1 parent
0aa6183804
commit
06f1b5bc62
12 files changed
+350
-548
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user