fix stylesheets locations, in chill-bundles or in project files

This commit is contained in:
2021-04-15 20:51:04 +02:00
parent 425d51649f
commit 9566ea89b1
5 changed files with 56 additions and 37 deletions

View File

@@ -42,19 +42,16 @@ module.exports = function(encore, entries)
// Push into "chill" entrypoint
entries.push(__dirname + '/Resources/public/main.js');
// Add new separate entrypoints
encore
.addEntry('scratch', __dirname + '/Resources/public/modules/scratch/index.js')
.addEntry('login', __dirname + '/Resources/public/modules/login_page/index.js')
.addEntry('tabs', __dirname + '/Resources/public/modules/tabs/index.js')
;
// Aliases are used when webpack is trying to resolve modules path
encore.addAliases({
ChillMainSass: __dirname + '/Resources/public/modules/scratch',
ShowHide: __dirname + '/Resources/public/modules/show_hide'
});
// Add separate entrypoints
encore.addEntry('login', __dirname + '/Resources/public/modules/login_page/index.js');
encore.addEntry('scratch', __dirname + '/Resources/public/modules/scratch/index.js');
// Chill2 new assets
encore.addEntry('forkawesome', __dirname + '/Resources/public/modules/forkawesome/index.js');
encore.addEntry('bootstrap', __dirname + '/Resources/public/modules/bootstrap/index.js');