fix: fix version console log (#1528)
This commit is contained in:
parent
6632e5d152
commit
e82289bff2
2
packages/netlify-cms-core/src/bootstrap.js
vendored
2
packages/netlify-cms-core/src/bootstrap.js
vendored
@ -20,7 +20,7 @@ function bootstrap(opts = {}) {
|
||||
/**
|
||||
* Log the version number.
|
||||
*/
|
||||
console.log(`Netlify CMS version ${process.env.NETLIFY_CMS_VERSION}`);
|
||||
console.log(`Netlify CMS version ${NETLIFY_CMS_VERSION}`);
|
||||
|
||||
/**
|
||||
* Get DOM element where app will mount.
|
||||
|
@ -26,7 +26,7 @@ const rules = () => ({
|
||||
const plugins = () => {
|
||||
return {
|
||||
define: () => new webpack.DefinePlugin({
|
||||
NETLIFY_CMS_VERSION: `${pkg.version}${isProduction ? '' : '-dev'}`,
|
||||
NETLIFY_CMS_VERSION: JSON.stringify(`${pkg.version}${isProduction ? '' : '-dev'}`),
|
||||
}),
|
||||
ignoreEsprima: () => new webpack.IgnorePlugin(/^esprima$/, /js-yaml/),
|
||||
ignoreMomentOptionalDeps: () => new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
||||
|
Loading…
x
Reference in New Issue
Block a user