Skip to content

Commit e82289b

Browse files
authored
fix: fix version console log (#1528)
1 parent 6632e5d commit e82289b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: packages/netlify-cms-core/src/bootstrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function bootstrap(opts = {}) {
2020
/**
2121
* Log the version number.
2222
*/
23-
console.log(`Netlify CMS version ${process.env.NETLIFY_CMS_VERSION}`);
23+
console.log(`Netlify CMS version ${NETLIFY_CMS_VERSION}`);
2424

2525
/**
2626
* Get DOM element where app will mount.

Diff for: scripts/webpack.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const rules = () => ({
2626
const plugins = () => {
2727
return {
2828
define: () => new webpack.DefinePlugin({
29-
NETLIFY_CMS_VERSION: `${pkg.version}${isProduction ? '' : '-dev'}`,
29+
NETLIFY_CMS_VERSION: JSON.stringify(`${pkg.version}${isProduction ? '' : '-dev'}`),
3030
}),
3131
ignoreEsprima: () => new webpack.IgnorePlugin(/^esprima$/, /js-yaml/),
3232
ignoreMomentOptionalDeps: () => new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),

0 commit comments

Comments
 (0)