-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run build:prod fails with assetsTypeError on fresh install #473
Comments
have the very same problem here |
When I commented out the Compression plugin, it worked... In /*new CompressionPlugin({
algorithm: helpers.gzipMaxLevel,
regExp: /\.css$|\.html$|\.js$|\.map$/,
threshold: 2 * 1024
})*/ |
I have the same problem I am using npm 3 with node 4.4.1. It works with block above commented out. Thanks for sharing. |
The problem is with the "algorithm: helpers.gzipMaxLevel,". |
@antonycooper i investigated it, our helper isn't necessary anymore and check this line you can specify the compression level in |
@tsm91 I just went to https://github.com/webpack/compression-webpack-plugin and used the default options from there. |
@antonycooper yep, that's perfect |
I can confirm switching algorithm to 'gzip' works. |
can someone create a PR? |
Don't pass default options and remove redundant helpers. Fixes #473
[:heavy_check_mark:] bug report
[ ] feature request
[ ] question about the decisions made in the repository
Just cloned the repo and installed dependencies etc. and was able to run it with
npm start
and view the page in my browser. However, when I runnpm run build:prod
it fails. Output:The contents of
npm-debug.log
(redundant bits excluded):No idea even where to begin debugging myself. I'm on OS X 10.11.1, node v4.2.1, just cloned repo today (Mar 27).
The text was updated successfully, but these errors were encountered: