mirror of
https://github.com/Febbweiss/springboot-react-webpack.git
synced 2026-03-04 22:25:34 +00:00
Optim: right vendors definition
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<head lang="en">
|
<head lang="en">
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title>Comments channel</title>
|
<title>Comments channel</title>
|
||||||
<link rel="stylesheet" href="/css/vendors.bundle.js.css" />
|
<link rel="stylesheet" href="/css/vendors.css" />
|
||||||
<link rel="stylesheet" href="/css/comments.css" />
|
<link rel="stylesheet" href="/css/comments.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ var config = {
|
|||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['', '.js', '.jsx', '.css']
|
extensions: ['', '.js', '.jsx', '.css']
|
||||||
},
|
},
|
||||||
devtool: 'sourcemaps',
|
devtool: 'source-map',
|
||||||
cache: true,
|
cache: true,
|
||||||
debug: true,
|
debug: true,
|
||||||
output: {
|
output: {
|
||||||
@@ -24,7 +24,7 @@ var config = {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new ExtractTextPlugin("../css/[name].css"),
|
new ExtractTextPlugin("../css/[name].css"),
|
||||||
new CommonsChunkPlugin("vendors.bundle.js", ["app", "vendors"]),
|
new CommonsChunkPlugin("vendors", null, true),
|
||||||
],
|
],
|
||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
|
|||||||
Reference in New Issue
Block a user