All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
- problem with resolving and the
includePaths
option (#913) (cadc75e)
- compatibility with the filesystem cache (#896) (e31f9b6)
- handle absolute windows path in source maps
- loader generates absolute
sources
in source maps, also avoids modifying sass
source maps if the sourceMap
option is false
- minimum supported Nodejs version is
10.13
- prefer
sass
(dart-sass
) by default, it is strongly recommended to migrate on sass
(dart-sass
)
- the
prependData
option was removed in favor the additionalData
option, see docs
- when the
sourceMap
is true
, sassOptions.sourceMap
, sassOptions.sourceMapContents
, sassOptions.sourceMapEmbed
, sassOptions.sourceMapRoot
and sassOptions.omitSourceMapUrl
will be ignored.
- pass the loader context to custom importers under the
this.webpackLoaderContext
property (#853) (d487683)
- supports for
process.cwd()
resolution logic by default (#837) (0c8d3b3)
- supports for
SASS-PATH
env variable resolution logic by default (#836) (8376179)
- supports for the
sass
property for the exports
field from package.json
(conditional exports, for more information read docs)
- avoid different content on different os (#832) (68dd278)
- resolution logic when the
includePaths
option used was improved (#827) (cbe5ad4)
- resolution logic for
file://
scheme was improved (17832fd)
- resolution logic for absolute paths and server relative URLs was improved
- source maps generation was improved
- minimum required
webpack
version is 4.36.0
- minimum required
node.js
version is 8.9.0
- move all sass (
includePaths
, importer
, functions
, outputStyle
) options to the sassOptions
option. The functions
option can't be used as Function
, you should use sassOption
as Function
to achieve this.
- the
data
option was renamed to the prependData
option
- default value of the
sourceMap
option depends on the devtool
value (eval
/false
values don't enable source map generation)
- automatically use the
fibers
package if it is possible (#744) (96184e1)
- source map generation depends on the
devtool
option (#743) (fcea88e)
- validate loader options (#737) (7b543fc)
- reworked error handling from
node-sass
/sass
- improve resolution for
@import
(including support _index
and index
files in a directory)
- allow passing
functions
option as function (#651) (6c9654d)
- support
data
as Function
(#648) (aa64e1b)
- support
sass
and style
fields in package.json
(#647) (a8709c9)
- support auto resolving
dart-sass
(ff90dd6)
- Errors being swallowed when trying to load node-sass (#576) (6dfb274), closes #563
- Report error to user for problems loading node-sass (#562) (2529c07)
- Refactor resolving and simplify webpack config aliases (#479) (e0fde1a)
- Remove
node-sass
from peerDependencies
(#533) (6439cef)
- Drop official node 4 support
- This slightly changes the resolving algorithm. Should not break in normal usage, but might break in complex configurations.
- The sass-loader throws an error at runtime now and refuses to compile if the peer dependency is wrong. This could break applications where npm's peer dependency warning was just ignored.
- package: add
webpack >= v4.0.0
(peerDependencies
) (#541) (620bdd4)
- Adds Webpack 3.x version range to peerDependencies
- importing file directly from scoped npm package #450 (5d06e9d)
- fix: Resolving of scoped npm packages #447
- Fix regression with empty files #398
- Reduce npm package size by using the files property in the
package.json
- Fix source maps in certain CWDs. #377
- Improve source map support. #374
- This is breaking for the resolve-url-loader
- Fix bug where multiple compilations interfered with each other. #369
- Remove synchronous compilation support #334
- Update webpack peer dependency to support 2.2.0rc. #330
- Update
node-sass@4.0.0
#319
- Fix wrong context in customImporters #281
- Fix custom importers receiving
'stdin'
as second argument instead of the actual resourcePath
#267
- Fix incorrect source map paths #250
- Fix incorrect source map paths #250
- Add
webpack@^2.1.0-beta
as peer dependency #233
- Append file content instead of overwriting when
data
-option is already present #216
- Make
indentedSyntax
option a bit smarter #196
- Fix loader query not overriding webpack config #189
- Update peer-dependencies #182
node-sass^3.4.2
webpack^1.12.6
- Fix missing module
object-assign
#178
- Fix a problem where modules with a
.
in their names were not resolved #167
- Add possibility to also define all options in your
webpack.config.js
#152 #170
- Fix crash when Sass reported an error without
file
#158
- Add
node-sass@^3.3.3
and webpack@^1.12.2
as peer-dependency #165 #166 #169
- Add missing path normalization (fixes #141)
- The new algorithm is aligned to libsass' way of resolving files. This yields to different results if two files with the same path and filename but with different extensions are present. Though this change should be no problem for most users, we must flag it as breaking change. #135 #138
- Fix wrong source-map urls #123
- Include source-map contents by default #104
- Fix importing css files from scss/sass #101
- Fix importing Sass partials from includePath #98 #110
- Fix a bug where files could not be imported across language styles #73
- Update peer-dependency
node-sass
to 3.1.0
- Fix Sass partials not being resolved anymore #68
- Update peer-dependency
node-sass
to 3.0.0-beta.4
- Moved
node-sass^3.0.0-alpha.0
to peerDependencies
#28
- Using webpack's module resolver as custom importer #39
- Add synchronous compilation support for usage with enhanced-require #39