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