fix: log accurate version by distribution (#1531)

This commit is contained in:
Shawn Erquhart
2018-07-27 14:26:03 -04:00
committed by GitHub
parent 668a53a079
commit 95a76ad790
5 changed files with 33 additions and 14 deletions

View File

@ -25,9 +25,6 @@ const rules = () => ({
const plugins = () => {
return {
define: () => new webpack.DefinePlugin({
NETLIFY_CMS_VERSION: JSON.stringify(`${pkg.version}${isProduction ? '' : '-dev'}`),
}),
ignoreEsprima: () => new webpack.IgnorePlugin(/^esprima$/, /js-yaml/),
ignoreMomentOptionalDeps: () => new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
friendlyErrors: () => new FriendlyErrorsWebpackPlugin(),