Skip to content

Commit

Permalink
Add lodash plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
markbrouch committed May 12, 2016
1 parent 555e524 commit 373a9e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
["babel-plugin-react-intl", {
"messagesDir": "./lib/tmp/messages/",
"enforceDescriptions": true
}]
}],
"lodash"
],
"env": {
"production": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ const archDevRequire = require("@walmart/electrode-archetype-react-component-dev
const mergeWebpackConfig = archDevRequire("webpack-partial").default;
const optimize = archDevRequire("webpack").optimize;

const LodashModuleReplacementPlugin = require("lodash-webpack-plugin");

module.exports = () => (config) => mergeWebpackConfig(config, {
plugins: [
new LodashModuleReplacementPlugin(),
new optimize.DedupePlugin(),
new optimize.UglifyJsPlugin({
compress: {
Expand Down

0 comments on commit 373a9e4

Please sign in to comment.