Open pmendelski opened 8 years ago
I solved this by setting target: 'node'
in my webpack config. This solves the 'fs' errors.
However in the case of html-minifier you'll get a new error because of the UglifyJS dependency. Uglify has some funky require going on which breaks when the script is run by the static site generator.
Since I didn't need this functionality, added a hacky solution to my webpack config: I added an alias for 'uglify-js' which would resolve to some dummy file.
Hi. First of all thanks for a great plugin.
Is there a way to minify the prerendered html using html-minifier?
P.S. html-minifier depends on other modules that don't play well with webpack compilation.
Minification attempt:
...results in: