Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
talk2MeGooseman committed Jan 16, 2020
1 parent 5fb3e6e commit 147b30a
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 1,074 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"scripts": {
"build": "cross-env NODE_ENV=development webpack --config webpack.config.babel.js",
"release": "cross-env NODE_ENV=production webpack --p --config webpack.config.babel.js",
"deploy": "",
"lint": "eslint ./src",
"start": "start-storybook -p 9001 -c .storybook",
"release-storybook": "build-storybook -c .storybook -o .out"
Expand All @@ -38,19 +37,19 @@
"@storybook/addon-options": "^5.0.0",
"@storybook/preset-create-react-app": "^1.2.0",
"@storybook/react": "^5.0.0",
"@storybook/storybook-deployer": "^2.0.0",
"@storybook/theming": "^5.0.0",
"babel-eslint": "^8.0.1",
"babel-loader": "^8.0.6",
"babel-preset-react-app": "^9.0.2",
"clean-webpack-plugin": "^0.1.16",
"clean-webpack-plugin": "^3.0.0",
"core-js": "3",
"cross-env": "^5.1.1",
"eslint": "^4.9.0",
"eslint-plugin-react": "^7.5.1",
"react-hot-loader": "^4.5.3",
"style-loader": "^0.19.0",
"webpack": "^3.8.1",
"webpack": "^4.0.0",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.1.11"
}
}
18 changes: 2 additions & 16 deletions webpack.config.babel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const path = require('path');
const webpack = require('webpack');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const packageJson = require('./package.json');

module.exports = {
Expand Down Expand Up @@ -48,19 +47,6 @@ module.exports = {

plugins: [
// Clean dist folder
new CleanWebpackPlugin(['dist/*.*']),

//CommonChunksPlugin will now extract all the common modules from vendor and main bundles
//https://medium.com/@adamrackis/vendor-and-code-splitting-in-webpack-2-6376358f1923
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
minChunks(module) {
return module.context && module.context.indexOf('node_modules') !== -1;
},
}),

new webpack.optimize.CommonsChunkPlugin({
name: 'manifest'
})
new CleanWebpackPlugin(),
]
};
Loading

0 comments on commit 147b30a

Please sign in to comment.