File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,8 @@ const lessLoader = {
17
17
module . exports = {
18
18
mode : 'development' ,
19
19
entry : {
20
- app : './src/App.tsx' ,
21
- vendor : [ 'react' , 'react-dom' ]
20
+ app : './src/App.tsx'
22
21
} ,
23
- devtool : 'source-map' ,
24
22
plugins : [
25
23
new webpack . HotModuleReplacementPlugin ( ) ,
26
24
new CleanWebpackPlugin ( ) ,
@@ -69,6 +67,11 @@ module.exports = {
69
67
filename : '[name].bundle.js' ,
70
68
path : path . resolve ( __dirname , 'dist' )
71
69
} ,
70
+ optimization : {
71
+ splitChunks : {
72
+ chunks : 'all'
73
+ }
74
+ } ,
72
75
module : {
73
76
rules : [
74
77
{
@@ -81,11 +84,6 @@ module.exports = {
81
84
loader : 'ts-loader' ,
82
85
exclude : / n o d e _ m o d u l e s /
83
86
} ,
84
- /* {
85
- test: /\.css$/,
86
- include: path.resolve(__dirname, 'src'),
87
- use: [ 'style-loader', 'css-loader' ]
88
- }, */
89
87
{
90
88
test : / \. ( p n g | s v g | j p g | g i f ) $ / ,
91
89
include : path . resolve ( __dirname , 'src' ) ,
You can’t perform that action at this time.
0 commit comments