From 9108737d55300d8a4f822ba94335d8b53f04854d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 7 Apr 2019 20:33:11 +0300 Subject: Webpack 4, ESLint with Vue, Node-sass, updated dependencies overall. New linting. --- build/webpack.dev.conf.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'build/webpack.dev.conf.js') diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 9f34619c..80b87ae8 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -12,7 +12,7 @@ Object.keys(baseWebpackConfig.entry).forEach(function (name) { module.exports = merge(baseWebpackConfig, { module: { - loaders: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) + rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) }, // eval-source-map is faster for development devtool: '#eval-source-map', @@ -23,9 +23,7 @@ module.exports = merge(baseWebpackConfig, { 'DEV_OVERRIDES': JSON.stringify(config.dev.settings) }), // https://github.com/glenjamin/webpack-hot-middleware#installation--usage - new webpack.optimize.OccurenceOrderPlugin(), new webpack.HotModuleReplacementPlugin(), - new webpack.NoErrorsPlugin(), // https://github.com/ampedandwired/html-webpack-plugin new HtmlWebpackPlugin({ filename: 'index.html', -- cgit v1.2.3-70-g09d2 From 1387589ac9dbfe1f8d45073d23d30dca46a9c7bd Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 28 Apr 2019 22:03:03 +0300 Subject: fixed build speed --- build/webpack.base.conf.js | 5 +++++ build/webpack.dev.conf.js | 1 + 2 files changed, 6 insertions(+) (limited to 'build/webpack.dev.conf.js') diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 6f6e785b..f8968966 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -20,6 +20,11 @@ module.exports = { publicPath: process.env.NODE_ENV === 'production' ? config.build.assetsPublicPath : config.dev.assetsPublicPath, filename: '[name].js' }, + optimization: { + splitChunks: { + chunks: 'all' + } + }, resolve: { extensions: ['.js', '.vue'], modules: [ diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 80b87ae8..159572ba 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -14,6 +14,7 @@ module.exports = merge(baseWebpackConfig, { module: { rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) }, + mode: 'development', // eval-source-map is faster for development devtool: '#eval-source-map', plugins: [ -- cgit v1.2.3-70-g09d2