Browse Source

upgrade roadhog and use ignoreMomentLocale

pull/309/head
afc163 9 years ago
parent
commit
af27ccc55c
  1. 1
      .roadhogrc
  2. 2
      package.json
  3. 7
      webpack.config.js

1
.roadhogrc

@ -24,5 +24,6 @@
"g-cloud": "Cloud",
"g2-plugin-slider": "G2.Plugin.slider"
},
"ignoreMomentLocale": true,
"theme": "./src/theme.js"
}

2
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"

7
webpack.config.js

@ -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;
};
Loading…
Cancel
Save