webpack-css-example
webpack-css-example copied to clipboard
Update css-loader to the latest version π
Version 1.0.0 of css-loader was just published.
| Dependency | css-loader |
|---|---|
| Current Version | 0.28.11 |
| Type | dependency |
The version 1.0.0 is not covered by your current version range.
If you donβt accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of css-loader.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you donβt have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
v1.0.0
1.0.0 (2018-07-06)
BREAKING CHANGES
- remove
minimizeoption, usepostcss-loaderwithcssnanoor useoptimize-cssnano-pluginplugin - remove
moduleoption, usemodulesoption instead - remove
camelcaseoption, usecamelCaseoption instead - remove
rootoption, usepostcss-loaderwithpostcss-urlplugin - remove
aliasoption, useresolve.aliasfeature or usepostcss-loaderwithpostcss-urlplugin - update
postcssto6version - minimum require
nodejsversion is6.9 - minimum require
webpackversion is4
Commits
The new version differs by 9 commits.
43179a8chore(release): 1.0.03d53968Merge remote-tracking branch 'origin/master'240db53version 1.0 (#742)1b7acf7Merge remote-tracking branch 'origin/master'1703721docs(README): add more context tolocalIdentName(#711)1c51265docs(README): fix malformed emoji (#701)50f8ec0Merge remote-tracking branch 'origin/master'07444adtests: css custom variables (#709)3de8aa7tests: css custom variables (#709)
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot :palm_tree:
- The
dependencycss-loader was updated from0.28.11to1.0.1.
- The
dependencycss-loader was updated from0.28.11to2.0.0.
Update to this version instead π
Release Notes for v2.0.0
2.0.0 (2018-12-07)
The main BREAKING CHANGES:
- css modules are disabled by default, you need setup their use
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. - resolving logic for
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
- broken unucode characters (#850) (f599c70)
- correctly processing
urls()with?#hash(#803) (417d105) - don't break loader on invalid or not exists url or import token (#827) (9e52d26)
- don't duplicate import with same media in different case (#819) (9f66e33)
- emit warnings on broken
importat-rules (#806) (4bdf08b) - handle uppercase
URLinimportat-rules (#818) (3ebdcd5) - inconsistent generate class names for css modules on difference os (#812) (0bdf9b7)
- reduce number of
requireforurls()(#854) (3338656) - support deduplication of string module ids (optimization.namedModules) (#789) (e3bb83a)
- support module resolution in
composes(#845) (453248f) - same
urls()resolving logic formodules(localandglobal) and without modules (#843) (fdcf687)
Features
- allow to disable css modules and disable their by default (#842) (889dc7f)
- disable
importoption doesn't affect oncomposes(#822) (f9aa73c) - allow to filter
urls(#856) (5e702e7) - allow to filter
importat-rules (#857) (5e6034c) - emit warning on invalid
urls()(#832) (da95db8) - added
exportOnlyLocalsoption (#824) (e9327c0) - reuse
postcssast from other loaders (i.epostcss-loader) (#840) (1dad1fb) - schema options (b97d997)
BREAKING CHANGES
- resolving logic for
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'). - by default css modules are disabled (now
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- invalid
@importat rules now emit warnings - use
postcss@7
Bonus
- code refactoring, updating deps and reusing
postcssast increase performance
Commits
The new version differs by 67 commits.
634ab49chore(release): 2.0.06ade2d0refactor: remove unused file (#860)e7525c9test: nested url (#859)7259faatest: css hacks (#858)5e6034cfeat: allow to filter import at-rules (#857)5e702e7feat: allow filtering urls (#856)9642aa5test: css stuff (#855)3338656fix: reduce number of require for url (#854)533abbetest: issue 636 (#853)08c551crefactor: better warning on invalid url resolution (#852)b0aa159test: issue #589 (#851)f599c70fix: broken unucode characters (#850)1e551f3test: issue 286 (#849)419d27bdocs: improve readme (#848)d94a698refactor: webpack-default (#847)
There are 67 commits in total.
See the full diff
- The
dependencycss-loader was updated from0.28.11to2.0.1.
Update to this version instead π
Commits
The new version differs by 8 commits.
e233d0achore(release): v2.0.1a88fed1fix: safe checking if params are present for at rule (#871)503391fchore(deps): update defaults (#870)8c0bb58Update CHANGELOG.md (#867)124ada5ci: fix commitlint analyze (#869)ba8a7bcdocs: improve readme (#868)12f88e2test: resolving in node_modules (#866)1825e8afix:getLocalIdentnow acceptsfalsevalue (#865)
See the full diff
- The
dependencycss-loader was updated from0.28.11to2.0.2.
- The
dependencycss-loader was updated from0.28.11to2.1.0.
- The
dependencycss-loader was updated from0.28.11to2.1.1.
Update to this version instead π
Commits
The new version differs by 13 commits.
bc16c3dchore(release): 2.1.1b671db7fix: don't remove value from attribute selector (#904)3797e4dfix: sourcemap generating when previous loader pass sourcemap as string (#905)cc81af1refactor: stuff (#903)e9ce745fix: source map generation whensourceRootis present (#901)a49e904docs: improve documentation forhashPrefix,context,getLocalIdent(#900)c309788refactor: avoidlodashin favor native implementations0ba8c66fix: do not break selector with escaping (#896)2293eb0chore: update defaults (#895)2a2ee7bdocs: sourceMaps are disabled by default (#890)2d45e95test: base64 (#888)1fb8948docs: update README.md (#885)034f9a3test: emoji (#881)
See the full diff