This repository was archived by the owner on Dec 27, 2023. It is now read-only.
Update css-loader in /packages/oc-template-react-compiler from 1.0.1 to 2.0.0 #349
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dependencies.io has updated
css-loader(a npm dependency in/packages/oc-template-react-compiler) from "1.0.1" to "2.0.0".2.0.0
2.0.0 (2018-12-07)
The main BREAKING CHANGES:
modulesoption. You can setup their usinglocal(trueis alias for this value) andglobal(previous behaviour) value. Why it is disabled by default? A lot of developers usecsswithout css modules features and they get performance problems duepostcssplugins spend time on analyze and processing file.uls()andimportat-rules works the same everywhere, it does not matter whether css modules are enabled (withglobalandlocalmodule) or not. Examples -url('image.png')asrequire('./image.png'),url('./image.png')asrequire('./image.png'),url('~module/image.png')asrequire('module/image.png').Bug Fixes
urls()with?#hash(#803) (417d105)importat-rules (#806) (4bdf08b)URLinimportat-rules (#818) (3ebdcd5)requireforurls()(#854) (3338656)composes(#845) (453248f)urls()resolving logic formodules(localandglobal) and without modules (#843) (fdcf687)Features
importoption doesn't affect oncomposes(#822) (f9aa73c)urls(#856) (5e702e7)importat-rules (#857) (5e6034c)urls()(#832) (da95db8)exportOnlyLocalsoption (#824) (e9327c0)postcssast from other loaders (i.epostcss-loader) (#840) (1dad1fb)BREAKING CHANGES
uls()andimportat-rules works the same everywhere, it does not matter whether css modules are enabled (withglobalandlocalmodule) or not. Examples -url('image.png')asrequire('./image.png'),url('./image.png')asrequire('./image.png'),url('~module/image.png')asrequire('module/image.png').modules: falsedisable all css modules features), you can return old behaviour change this onmodules: 'global'css-loader/localswas dropped in favorexportOnlyLocalsoptionimportoption only affect onimportat-rules and doesn't affect oncomposesdeclarations@importat rules now emit warningspostcss@7Bonus
postcssast increase performance