For these pages we don't use application.js and application.css files compiled by Webpack. There is an exception for ranking show and ranking index pages. This folder shouldn't be committed to repo and always be in. Note: webpack-dev-server compiles all files and creates manifest.json file under public/packs. Heroku runs assets:precompile task after each deploy by default. Vendor.js file is where we should import all yarn packages we want to use in the application.Īlso, styling files (css, scss) from yarn packages should be imported in frontend/application.scss if needed.įor production compilation, either rake assets:precompile or rake webpacker:compile should be ran. Here in this file we import all component script files and also frontend/vendor.js and frontend/application.scss. We use only one entry for webpack compilation which is frontend/application.js. To configure all environtments shared.js or environment.js can be used.įor detailed information please see 5. Here there are seperate files for each environment. Adding new plugins or loaders can be done here. The most flexible and powerful way to configure Webpack is it use environment script files under config/webpack. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |