File tree 3 files changed +2915
-534
lines changed
examples/react-hot-boilerplate
3 files changed +2915
-534
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " Boilerplate for ReactJS project with hot code reloading" ,
5
5
"scripts" : {
6
- "start" : " webpack-dev-server" ,
6
+ "start" : " webpack-dev-server --mode development " ,
7
7
"prebuild" : " rimraf dist" ,
8
- "build" : " cross-env NODE_ENV=production webpack -p --config webpack.config.production.js" ,
8
+ "build" : " cross-env webpack --mode production --config webpack.config.production.js" ,
9
9
"postbuild" : " copyfiles index.html dist"
10
10
},
11
11
"repository" : {
35
35
"@types/react-hot-loader" : " ^3.0.4" ,
36
36
"copyfiles" : " ^1.2.0" ,
37
37
"cross-env" : " ^3.1.4" ,
38
- "fork-ts-checker-webpack-plugin" : " ^0.2.8 " ,
38
+ "fork-ts-checker-webpack-plugin" : " ^0.4.0 " ,
39
39
"react-hot-loader" : " ^3.0.0" ,
40
40
"rimraf" : " ^2.6.0" ,
41
- "ts-loader" : " ^3 .0.0" ,
41
+ "ts-loader" : " ^4 .0.0" ,
42
42
"tslint" : " ^5.8.0" ,
43
43
"tslint-react" : " ^3.2.0" ,
44
44
"typescript" : " ^2.5.3" ,
45
- "webpack" : " ^3 .0.0" ,
46
- "webpack-dev-server" : " ^2.2 .0"
45
+ "webpack" : " ^4 .0.0" ,
46
+ "webpack-dev-server" : " ^3.0 .0"
47
47
},
48
48
"dependencies" : {
49
49
"react" : " ^16.0.0" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ var webpack = require('webpack');
3
3
const ForkTsCheckerWebpackPlugin = require ( 'fork-ts-checker-webpack-plugin' ) ;
4
4
5
5
module . exports = {
6
- entry : './src/index.js ' ,
6
+ entry : './src/index.tsx ' ,
7
7
8
8
output : {
9
9
filename : 'static/bundle.js' ,
@@ -26,10 +26,6 @@ module.exports = {
26
26
} ,
27
27
28
28
plugins : [
29
- new webpack . optimize . UglifyJsPlugin ( {
30
- sourceMap : true ,
31
- comments : false
32
- } ) ,
33
29
new ForkTsCheckerWebpackPlugin ( {
34
30
tslint : true ,
35
31
checkSyntacticErrors : true
You can’t perform that action at this time.
0 commit comments