JJ Kasper
6fd2a7fa31
Remove webpack4 types ( #39631 )
...
These types are no longer needed as we are only leveraging webpack 5 so this finishes migrating our types away from webpack 4's types.
2022-08-16 09:55:37 +00:00
Tobias Koppers
283af4e69b
use loader-utils 2 for resolve-url-loader to fix ./data:
urls in sass ( #31134 )
...
upgrade to loader-utils 3.1.2 for hash fix
fixes #31016
fixes #30998
2021-11-08 18:37:25 +00:00
Guy Bedford
005a8abe39
feat: Webpack loader inlining ( #21127 )
...
This picks up on the inlining work in https://github.com/vercel/next.js/pull/20598 to also include webpack loader inlining optimizations.
This includes:
* The dependencies of sass-loader
* resolve-url-loader
And for added benefit:
* babel-plugin-transform-define
* babel-plugin-transform-react-remove-prop-types
style-loader and css-loader didn't inline easily. Perhaps we can come back to these ones.
2021-01-15 01:51:45 +00:00
Guy Bedford
bddb02286f
feat: webpack inlining with configuration for v4 / v5 ( #20598 )
2021-01-13 20:59:08 -05:00
Joe Haddad
937884b64e
Fix CSS Identifier Cleaning ( #12239 )
2020-04-27 10:35:10 -04:00
JJ Kasper
cd1a2a5949
Handle more invalid CSS class characters ( #11809 )
...
* Handle more invalid CSS class characters
* Remove old comment
2020-04-10 10:37:24 -05:00
JJ Kasper
ab4ba0418c
Replace brackets in CSS classes for dynamic routes ( #11795 )
2020-04-10 12:32:55 +02:00
Alexander Dreith
8449ebc221
[Experimental] Add built-in Sass support ( #10133 )
...
* Add built-in Sass support
* Add copy of CSS tests for SCSS
* Fix failing tests
* Fix url-loader tests
* Remove css file generated by tests
* Fix nprogress import for css file
* Fix SCSS modules (still 2 tests that need investigating)
* Update documentation for Sass support
* Fix plain CSS import test
* Fix formatting with prettier fix
* Update test output to reflect scss usage
* Revert "Fix plain CSS import test"
This reverts commit 380319d9d0c4bfb19e28c210262ccd82d19f3556.
# Conflicts:
# test/integration/scss-modules/test/index.test.js
* Update loader structure
* Resolve loaders before passing to compile function
* Remove dead filter code
* Arrange loaders in order and push to array
* Fix loader order bug
* Fix global Sass loader and make module prepocessor optional
* Adjust Sass Modules Implementation
* Fix typo
* Adjust regexps
* Use regexes
* Simplify global setup
* Adjust comments
* fix regex
* Simplify identifier file
* Update Sass Instructions
* Remove unneeded fixtures
* Adjust global tests
* Remove wrapper
* Update source maps
* Flag scss behavior
* Fix css property value
* Update fixtures with Sass vars
* Turn on Scss support
* fix HMR test
* Fix snapshots
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-22 15:26:51 -05:00
Joe Haddad
f67f99a295
Extract CSS Loaders into Separate Files ( #10210 )
2020-01-22 09:50:27 -06:00