Skip to content
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

Clean unused js files #123

Open
gkpty opened this issue Jul 16, 2020 · 0 comments
Open

Clean unused js files #123

gkpty opened this issue Jul 16, 2020 · 0 comments
Labels
bug Something isn't working enhancement New feature or request Optimize related to optimize command webpack stuff related to webpack affecting the dev server or the optimize command

Comments

@gkpty
Copy link
Contributor

gkpty commented Jul 16, 2020

Arjan will create a js file for every HTML file.

After the build (optimize) Any JS files created for an HTML file that didnt exist during development should be deleted.

Check out the clean-webpack-plugin for this.
https://www.npmjs.com/package/clean-webpack-plugin#about

probably will have to do it by hand..

Also all the stylesheets imports must be removed from the JS files.

@gkpty gkpty added Optimize related to optimize command webpack stuff related to webpack affecting the dev server or the optimize command bug Something isn't working enhancement New feature or request labels Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request Optimize related to optimize command webpack stuff related to webpack affecting the dev server or the optimize command
Projects
None yet
Development

No branches or pull requests

1 participant