yarn add webpack-merge -D
image.png
webpack.dev.js
module.exports = smart(base, {
mode: 'development',
devServer: {
},
devtool: 'source-map',
})
npm run build -- --config webpack.dev.js
yarn add webpack-merge -D
image.png
webpack.dev.js
module.exports = smart(base, {
mode: 'development',
devServer: {
},
devtool: 'source-map',
})
npm run build -- --config webpack.dev.js
本文标题:webpack4个人学习详细笔记(13)-- 区分不同环境
本文链接:https://www.haomeiwen.com/subject/kcfmphtx.html
网友评论