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

Commit 97eb4cf

Browse files
committed
Add mode options
1 parent 92d23c7 commit 97eb4cf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

build/webpack.dev.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const HOST = process.env.HOST
1414
const PORT = process.env.PORT && Number(process.env.PORT)
1515

1616
const devWebpackConfig = merge(baseWebpackConfig, {
17+
mode: 'development',
1718
module: {
1819
rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
1920
},

build/webpack.prod.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const BrotliPlugin = require('brotli-webpack-plugin')
1515
const env = require('../config/prod.env')
1616

1717
const webpackConfig = merge(baseWebpackConfig, {
18+
mode: 'production',
1819
module: {
1920
rules: utils.styleLoaders({
2021
sourceMap: config.build.productionSourceMap,

0 commit comments

Comments
 (0)