Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit e010c97

Browse files
committed
fix(webpack): use production mode on production
1 parent fab4033 commit e010c97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/fusuma/src/webpack/webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ module.exports = (
5959
],
6060
},
6161
resolve: {
62+
mainFields: ['module', 'main'],
6263
alias: {
6364
// https://github.com/facebook/react/issues/13991
6465
// for dev

packages/fusuma/src/webpack/webpack.prod.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ const css = require('./css');
77

88
function prod() {
99
return {
10-
// mode: 'production',
11-
mode: 'none', // if specify production, webpack won't generate dist directory(and mini-css-extract has errors)
10+
mode: 'production',
1211
output: {
1312
filename: '[name].[chunkhash].bundle.js',
1413
chunkFilename: '[name].[id].[chunkhash].bundle.js',

0 commit comments

Comments
 (0)