Skip to content

Commit 9fd764b

Browse files
committedOct 16, 2023
Major housekeeping for plugins + configs (consistency + bug fixes)
1 parent 589c69a commit 9fd764b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+562
-328
lines changed
 
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
const getDevelopmentConfig = require('./webpack.dev.js');
22
const getProductionConfig = require('./webpack.prod.js');
33

4-
module.exports = (env, argv) => (env.production ? getProductionConfig() : getDevelopmentConfig());
4+
module.exports = (env, argv) => (env.production ? getProductionConfig(env) : getDevelopmentConfig(env));

‎fixtures/plugins/webpack/webpack.dev.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ const EslintPlugin = require('eslint-webpack-plugin');
22
const merge = require('./merge.js');
33
const common = require('./webpack.common.js');
44

5-
module.exports = () =>
5+
module.exports = env =>
66
merge(common(), {
7+
mode: env.production ? 'production' : 'development',
78
entry: {
89
main: './src/app.ts',
910
vendor: './src/vendor.ts',

0 commit comments

Comments
 (0)
Please sign in to comment.