We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to use uglify-loader to uglify files required with the script-loader.
script-loader
My code looks as follows:
require('uglify-loader'); require('uglify!script!../lib/form2js/form2js');
When doing this I get the following error:
Module not found: Error: Cannot resolve module 'fs' in ~/project/node_modules/uglify-loader/node_modules/uglify-js/tools @ ./~/uglify-loader/~/uglify-js/tools/node.js 2:9-22
The text was updated successfully, but these errors were encountered:
Why do you require require('uglify-loader');? Webpack plugins should work without explicit require.
require('uglify-loader');
I just have checked it on my local setup:
[169] ./~/uglify-loader!./~/script-loader!./components/angular/angular.min.js 386 {0} [built] [170] ./~/raw-loader!./components/angular/angular.min.js 128453 {0} [built]
All looks fine to me.
This Cannot resolve module 'fs' is familiar, have a look at webpack/webpack#451 pugjs/pug-loader#8
Cannot resolve module 'fs'
Sorry, something went wrong.
reopen issue if it is still relevant
No branches or pull requests
I'd like to use uglify-loader to uglify files required with the
script-loader
.My code looks as follows:
When doing this I get the following error:
The text was updated successfully, but these errors were encountered: