chore: improve build output (#2258)
This commit is contained in:
committed by
Shawn Erquhart
parent
54fde06050
commit
f5e148f9a7
@ -13,7 +13,7 @@
|
||||
"scripts": {
|
||||
"develop": "yarn build:esm --watch",
|
||||
"build": "cross-env NODE_ENV=production webpack",
|
||||
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore src/**/__tests__/* --root-mode upward -s"
|
||||
"build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore **/__tests__ --root-mode upward -s"
|
||||
},
|
||||
"keywords": [
|
||||
"netlify",
|
||||
|
@ -5,7 +5,6 @@ const { getConfig } = require('../../scripts/webpack.js');
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
|
||||
const versionPlugin = new webpack.DefinePlugin({
|
||||
NETLIFY_CMS_VERSION: null,
|
||||
NETLIFY_CMS_CORE_VERSION: JSON.stringify(`${pkg.version}${isProduction ? '' : '-dev'}`),
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user