Node.js/webpack:修订间差异
来自康健生活
| 第830行: | 第830行: | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
const foo = 'beta'; | |||
module.exports = { | module.exports = { | ||
plugins: [ | plugins: [ | ||
new webpack.DefinePlugin({ | new webpack.DefinePlugin({ | ||
NODE_ENV: | NODE_ENV: JSON.stringify(foo) | ||
}) | }) | ||
] | ] | ||