generator-thundr-gae-react
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -40,3 +40,3 @@ /* eslint-disable comma-dangle */ | ||
output: { | ||
filename: 'bundle.js', | ||
filename: '[name].js', | ||
path: targetDir + '/static', | ||
@@ -54,2 +54,15 @@ publicPath: '/static/', | ||
plugins: [ | ||
// Split vender modules out into own chunk to improve compile times | ||
new webpack.optimize.CommonsChunkPlugin({ | ||
name: 'vendor', | ||
minChunks: function (module) { | ||
return module.context && module.context.indexOf('node_modules') !== -1; | ||
} | ||
}), | ||
// Split webpack bootstrap/manifest out to improve compile times and caching | ||
new webpack.optimize.CommonsChunkPlugin({ | ||
name: 'manifest', | ||
}), | ||
new webpack.DefinePlugin({ | ||
@@ -199,2 +212,5 @@ 'process.env': { | ||
} else { | ||
// Hash bundles for cache busting | ||
webpackConfig.output.filename = '[name].[hash].js'; | ||
webpackConfig.module.rules.push( | ||
@@ -201,0 +217,0 @@ { |
{ | ||
"name": "generator-thundr-gae-react", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Yeoman generator for a React app that runs atop Thundr on Google App Engine", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/kuhnza/generator-thundr-gae-react", |
@@ -28,3 +28,3 @@ # generator-react-thundr-gae [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] | ||
- [ ] Compress images | ||
- [ ] Split vendor and application bundles and use chunkhash | ||
- [x] Split vendor and application bundles and use chunkhash | ||
- [ ] Sample API endpoint | ||
@@ -31,0 +31,0 @@ - [ ] Sample frontend tests |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69065
427