fix: fix netlify-cms webpack plugins

This commit is contained in:
Shawn Erquhart 2018-07-27 17:13:01 -04:00
parent 95a76ad790
commit 5af05865e5

View File

@ -10,7 +10,7 @@ const baseConfig = {
context: path.join(__dirname, 'src'),
entry: './index.js',
plugins: [
...coreWebpackConfig.plugins.filter(plugin => !plugin instanceof webpack.DefinePlugin),
...coreWebpackConfig.plugins.filter(plugin => !(plugin instanceof webpack.DefinePlugin)),
new webpack.DefinePlugin({
NETLIFY_CMS_VERSION: JSON.stringify(`${pkg.version}${isProduction ? '' : '-dev'}`),
NETLIFY_CMS_CORE_VERSION: null,