Parcourir la source

Optim: right vendors definition

fecaille il y a 9 ans
Parent
commit
3dcc448114
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      src/main/resources/templates/index.html
  2. 2 2
      webpack.config.js

+ 1 - 1
src/main/resources/templates/index.html

@@ -3,7 +3,7 @@
 <head lang="en">
 	<meta charset="UTF-8" />
 	<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" />
 </head>
 <body>

+ 2 - 2
webpack.config.js

@@ -14,7 +14,7 @@ var config = {
     resolve: {
     	extensions: ['', '.js', '.jsx', '.css']
     },
-    devtool: 'sourcemaps',
+    devtool: 'source-map',
     cache: true,
     debug: true,
     output: {
@@ -24,7 +24,7 @@ var config = {
     },
     plugins: [
         new ExtractTextPlugin("../css/[name].css"),
-        new CommonsChunkPlugin("vendors.bundle.js", ["app", "vendors"]),
+        new CommonsChunkPlugin("vendors", null, true),
     ],
     module: {
         loaders: [