File tree 2 files changed +2
-2
lines changed
packages/netlify-cms-core/src
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function bootstrap(opts = {}) {
20
20
/**
21
21
* Log the version number.
22
22
*/
23
- console . log ( `Netlify CMS version ${ process . env . NETLIFY_CMS_VERSION } ` ) ;
23
+ console . log ( `Netlify CMS version ${ NETLIFY_CMS_VERSION } ` ) ;
24
24
25
25
/**
26
26
* Get DOM element where app will mount.
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const rules = () => ({
26
26
const plugins = ( ) => {
27
27
return {
28
28
define : ( ) => new webpack . DefinePlugin ( {
29
- NETLIFY_CMS_VERSION : `${ pkg . version } ${ isProduction ? '' : '-dev' } ` ,
29
+ NETLIFY_CMS_VERSION : JSON . stringify ( `${ pkg . version } ${ isProduction ? '' : '-dev' } ` ) ,
30
30
} ) ,
31
31
ignoreEsprima : ( ) => new webpack . IgnorePlugin ( / ^ e s p r i m a $ / , / j s - y a m l / ) ,
32
32
ignoreMomentOptionalDeps : ( ) => new webpack . IgnorePlugin ( / ^ \. \/ l o c a l e $ / , / m o m e n t $ / ) ,
You can’t perform that action at this time.
0 commit comments