Skip to content

Commit 169295b

Browse files
committed
fix: use same name for production and dev
1 parent 20394bf commit 169295b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

webpack.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ module.exports = async (env, argv) => {
1818

1919
output: {
2020
path: path.resolve(__dirname, 'dist'),
21-
filename: isProduction ? '[name].min.js' : '[name].js',
22-
chunkFilename: isProduction ? '[name].min.js' : '[name].js',
23-
// filename: isProduction ? '[name].js' : '[name].js',
24-
// chunkFilename: isProduction ? '[name].js' : '[name].js',
21+
// filename: isProduction ? '[name].min.js' : '[name].js',
22+
// chunkFilename: isProduction ? '[name].min.js' : '[name].js',
23+
filename: isProduction ? '[name].js' : '[name].js',
24+
chunkFilename: isProduction ? '[name].js' : '[name].js',
2525
libraryTarget: 'umd',
2626
libraryExport: 'default',
2727
library: 'CoCreate',

0 commit comments

Comments
 (0)