fix: fix netlify-cms webpack plugins
This commit is contained in:
parent
95a76ad790
commit
5af05865e5
@ -10,7 +10,7 @@ const baseConfig = {
|
|||||||
context: path.join(__dirname, 'src'),
|
context: path.join(__dirname, 'src'),
|
||||||
entry: './index.js',
|
entry: './index.js',
|
||||||
plugins: [
|
plugins: [
|
||||||
...coreWebpackConfig.plugins.filter(plugin => !plugin instanceof webpack.DefinePlugin),
|
...coreWebpackConfig.plugins.filter(plugin => !(plugin instanceof webpack.DefinePlugin)),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
NETLIFY_CMS_VERSION: JSON.stringify(`${pkg.version}${isProduction ? '' : '-dev'}`),
|
NETLIFY_CMS_VERSION: JSON.stringify(`${pkg.version}${isProduction ? '' : '-dev'}`),
|
||||||
NETLIFY_CMS_CORE_VERSION: null,
|
NETLIFY_CMS_CORE_VERSION: null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user