mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-15 01:20:59 +00:00
27 lines
927 B
Markdown
27 lines
927 B
Markdown
# UPGRADE FROM `v1.11.X` TO `v1.12.0`
|
|
|
|
## Main update
|
|
|
|
### Asset management changes
|
|
|
|
We updated gulp-sass plugin as well as the sass implementation we use to be compatible with most installation
|
|
([node-sass](https://sass-lang.com/blog/libsass-is-deprecated) is deprecated and incompatible with many systems).
|
|
Therefore you need to update your code to follow this change.
|
|
|
|
1. Change the gulp-sass version you are using to `^5.1.0` (package.json file)
|
|
```diff
|
|
- "gulp-sass": "^4.0.1",
|
|
+ "gulp-sass": "^5.1.0",
|
|
```
|
|
2. Add sass to your package.json:
|
|
```diff
|
|
+ "sass": "^1.48.0",
|
|
```
|
|
3. Follow [this guide](https://github.com/dlmanning/gulp-sass/tree/master#migrating-to-version-5) to upgrade your
|
|
code when using gulp-sass this is an example:
|
|
```diff
|
|
- import sass from 'gulp-sass';
|
|
+ import gulpSass from 'gulp-sass';
|
|
+ import realSass from 'sass';
|
|
+ const sass = gulpSass(realSass);
|
|
```
|