From 6f3f75399a906c74a657b7a328f453229289f421 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 31 Oct 2017 11:09:08 +0800 Subject: [PATCH] upgrade roadhog and use ignoreMomentLocale --- .roadhogrc | 1 + package.json | 2 +- webpack.config.js | 7 ------- 3 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 webpack.config.js diff --git a/.roadhogrc b/.roadhogrc index 3a08204b..559cb327 100755 --- a/.roadhogrc +++ b/.roadhogrc @@ -24,5 +24,6 @@ "g-cloud": "Cloud", "g2-plugin-slider": "G2.Plugin.slider" }, + "ignoreMomentLocale": true, "theme": "./src/theme.js" } diff --git a/package.json b/package.json index d29e7a12..d2178cc0 100755 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "react-container-query": "^0.9.1", "react-test-renderer": "^16.0.0", "redbox-react": "^1.3.2", - "roadhog": "^1.2.1", + "roadhog": "^1.3.1", "roadhog-api-doc": "^0.1.11", "stylelint": "^8.1.0", "stylelint-config-standard": "^17.0.0" diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index 98f9d584..00000000 --- a/webpack.config.js +++ /dev/null @@ -1,7 +0,0 @@ -const webpack = require('webpack'); - -module.exports = (webpackConfig) => { - // Avoid import all locale file of moment - webpackConfig.plugins.push(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)); - return webpackConfig; -}; -- GitLab