Skip to content

Commit fa52fca

Browse files
Merge pull request #94 from Detaysoft/webpack-update
webpack upgraded
2 parents 2b3a81a + 96fd26f commit fa52fca

3 files changed

Lines changed: 2186 additions & 997 deletions

File tree

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
{
22
"name": "react-chat-elements",
3-
"version": "10.4.1",
3+
"version": "10.4.2",
44
"description": "Reactjs chat components",
55
"author": "Avare Kodcu <abdurrahmaneker58@gmail.com>",
66
"main": "dist/main.js",
77
"devDependencies": {
88
"babel-core": "^6.0.20",
9-
"babel-loader": "^6.0.1",
9+
"babel-jest": "21.2.0",
10+
"babel-loader": "7",
1011
"babel-plugin-css-modules-transform": "^1.2.7",
1112
"babel-plugin-transform-remove-strict-mode": "0.0.2",
1213
"babel-preset-es2015": "^6.0.15",
1314
"babel-preset-react": "^6.0.15",
15+
"babel-preset-react-native": "4.0.0",
1416
"babel-preset-stage-0": "^6.0.15",
1517
"css-loader": "^0.28.5",
1618
"enzyme": "^2.9.1",
1719
"enzyme-to-json": "^1.5.1",
18-
"extract-text-webpack-plugin": "^3.0.0",
20+
"extract-text-webpack-plugin": "^4.0.0-beta.0",
1921
"identicon.js": "^2.3.1",
22+
"jest": "21.2.1",
2023
"lorem-ipsum": "^1.0.4",
21-
"nwb": "^0.18.10",
24+
"nwb": "^0.23.0",
2225
"react": "16.0.0-beta.5",
23-
"react-native": "0.49.5",
2426
"react-dom": "^16.3.0",
27+
"react-native": "0.49.5",
2528
"react-scripts": "^1.0.10",
2629
"react-test-renderer": "16.0.0-beta.5",
27-
"webpack-node-externals": "^1.6.0",
28-
"babel-jest": "21.2.0",
29-
"babel-preset-react-native": "4.0.0",
30-
"jest": "21.2.1"
30+
"webpack-cli": "^3.3.0",
31+
"webpack-node-externals": "^1.6.0"
3132
},
3233
"repository": {
3334
"type": "git",

webpack.config.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ module.exports = {
1616
node: {
1717
global: false,
1818
},
19+
devtool: false,
1920
stats: {
2021
colors: true,
2122
warnings: false,
2223
},
24+
optimization: {
25+
minimize: true,
26+
},
2327
module: {
24-
loaders: [
28+
rules: [
2529
{
2630
test: /\.js$/,
2731
exclude: /node_modules/,
@@ -42,12 +46,6 @@ module.exports = {
4246
})],
4347
plugins: [
4448
new webpack.optimize.OccurrenceOrderPlugin(),
45-
new webpack.optimize.UglifyJsPlugin({
46-
compress: false,
47-
mangle: false,
48-
beautify: false,
49-
comments: false,
50-
}),
5149
new ExtractTextPlugin("main.css"),
5250
],
5351
};

0 commit comments

Comments
 (0)