mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-13 18:55:23 +00:00
move DefinePlugin to new webpack config location
This commit is contained in:
@@ -29,7 +29,11 @@ module.exports = {
|
||||
},
|
||||
mode,
|
||||
plugins: [
|
||||
isDev && new webpack.HotModuleReplacementPlugin()
|
||||
isDev && new webpack.HotModuleReplacementPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
'process.browser': true,
|
||||
'process.env.NODE_ENV': JSON.stringify(mode)
|
||||
}),
|
||||
].filter(Boolean),
|
||||
devtool: isDev && 'inline-source-map'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user