PurgeCss on mutiple css files
See original GitHub issueHi dear friends, I have multiple SCSS files for different pages but final PurgeCss command apply on all css files. Please help me, thanks
`mix.sass(‘resources/assets/sass/app.scss’, ‘public/build/css’).options({ processCssUrls: false }).purgeCss({ enabled: true, whitelistPatterns: whitelistPatterns }).version();
mix.sass(‘resources/assets/sass/app-home.scss’, ‘public/build/css’).options({ processCssUrls: false }).purgeCss({ enabled: true, paths: () => glob.sync([ path.join(__dirname, ‘resources/views/layouts/app.blade.php’), path.join(__dirname, ‘resources/views/layouts/flushMessage.blade.php’), path.join(__dirname, ‘resources/views/layouts/appHeader.blade.php’), path.join(__dirname, ‘resources/views/layouts/appFooter.blade.php’), path.join(__dirname, ‘resources/views/layouts/callNumber.blade.php’), path.join(__dirname, ‘resources/views/home.blade.php’), path.join(__dirname, ‘resources/views/home/*.blade.php’), ]), whitelistPatterns: whitelistPatterns }).version();
mix.sass(‘resources/assets/sass/app-teacher-list.scss’, ‘public/build/css’).options({ processCssUrls: false }).purgeCss({ enabled: true, paths: () => glob.sync([ path.join(__dirname, ‘resources/views/layouts/app.blade.php’), path.join(__dirname, ‘resources/views/layouts/flushMessage.blade.php’), path.join(__dirname, ‘resources/views/layouts/appHeader.blade.php’), path.join(__dirname, ‘resources/views/layouts/appFooter.blade.php’), path.join(__dirname, ‘resources/views/layouts/callNumber.blade.php’), path.join(__dirname, ‘resources/views/teacherList.blade.php’), ]), whitelistPatterns: whitelistPatterns }).version();`
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:6
Top GitHub Comments
Would love to see this too. i use separate css for admin and frontend.
I think the case is still relevant and it deserves attention.