fix: fix version console log (#1528)

This commit is contained in:
Shawn Erquhart 2018-07-27 11:50:04 -04:00 committed by GitHub
parent 6632e5d152
commit e82289bff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ function bootstrap(opts = {}) {
/** /**
* Log the version number. * 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. * Get DOM element where app will mount.

View File

@ -26,7 +26,7 @@ const rules = () => ({
const plugins = () => { const plugins = () => {
return { return {
define: () => new webpack.DefinePlugin({ 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/), ignoreEsprima: () => new webpack.IgnorePlugin(/^esprima$/, /js-yaml/),
ignoreMomentOptionalDeps: () => new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), ignoreMomentOptionalDeps: () => new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),