Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
split css and es6 files
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Feb 17, 2017
1 parent 2cdefbc commit deacca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ function start(cliOptions = {}) { // eslint-disable-line complexity
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
minChunks: module => {
return module.resource && /\.js$/.test(module.resource) && module.resource.indexOf('node_modules') !== -1
return module.resource && /\.(js|css|es6)$/.test(module.resource) && module.resource.indexOf('node_modules') !== -1
}
}),
new webpack.optimize.CommonsChunkPlugin({
Expand Down

0 comments on commit deacca1

Please sign in to comment.