Closed roldengarm closed 1 year ago
Usually with DefinePlugin, you should do JSON.stringify, i.e.:
const webpackConfig = {
plugins: [new webpack.DefinePlugin({
'VARIABLE': JSON.stringify('VALUE')
})]
}
This issue has been automatically closed because we haven't received any response back. Please feel free to reopen if needed.
I'm trying to add a custom plugin to set some custom variables. In webpack.extend.js I've added:
However, getting an error at DefinePlugin.js: 292
I appreciate you're busy, hopefully you can shed a light on this, thank you.