Skip to content

Commit

Permalink
fix webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
foxhound87 committed Dec 8, 2016
1 parent b173d7b commit 1ef7da8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/web/views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<%-head.meta%>
<%-head.link%>
<% if (build) { %>
<link href="<%-build%>/style.css" rel="stylesheet" type="text/css">
<link href="<%-build%>/web.style.css" rel="stylesheet" type="text/css">
<% } %>
<script>
<%- 'window.__STATE = ' + state + ';' %>
Expand Down
2 changes: 1 addition & 1 deletion webpack/config.client.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function config(entry) {
filename: [entry, 'vendor', 'bundle', 'js'].join('.'),
}),
new ExtractTextPlugin({
filename: 'style.css',
filename: [entry, 'style', 'css'].join('.'),
allChunks: true,
}),
],
Expand Down
3 changes: 1 addition & 2 deletions webpack/config.server.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ export function config(entry) {
],
output: {
path: Dir.nodeBuild,
filename: [entry, 'bundle.js'].join('.'),
filename: [entry, 'bundle', 'js'].join('.'),
},
externals: [nodeExternalModules()],
plugins: [
new ProgressBarPlugin(),
new ExtractTextPlugin({
filename: 'style.css',
disable: true,
}),
new webpack.optimize.UglifyJsPlugin({
Expand Down
3 changes: 1 addition & 2 deletions webpack/config.server.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function config(entry) {
],
output: {
path: Dir.nodeBuild,
filename: [entry, 'dev.bundle.js'].join('.'),
filename: [entry, 'dev', 'bundle', 'js'].join('.'),
chunkFilename: '[id].[hash:5]-[chunkhash:7].js',
devtoolModuleFilenameTemplate: '[absolute-resource-path]',
libraryTarget: 'commonjs2',
Expand All @@ -62,7 +62,6 @@ export function config(entry) {
// })],
plugins: [
new ExtractTextPlugin({
filename: 'style.css',
disable: true,
}),
new StartServerPlugin(),
Expand Down

0 comments on commit 1ef7da8

Please sign in to comment.