mirror of
https://github.com/frappe/books.git
synced 2025-01-13 03:11:30 +00:00
[sass] support imports that start with ~
This commit is contained in:
parent
00b93cac73
commit
0bf4e68339
@ -2,7 +2,15 @@
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"postcss-import": {},
|
"postcss-import": {
|
||||||
|
resolve(id) {
|
||||||
|
// sass imports that start with ~ (which refers node_modules) should be supported
|
||||||
|
if (id.startsWith('~')) {
|
||||||
|
return id.slice(1);
|
||||||
|
}
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
},
|
||||||
"postcss-url": {},
|
"postcss-url": {},
|
||||||
// to edit target browsers: use "browserslist" field in package.json
|
// to edit target browsers: use "browserslist" field in package.json
|
||||||
"autoprefixer": {}
|
"autoprefixer": {}
|
||||||
|
Loading…
Reference in New Issue
Block a user