2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

[sass] support imports that start with ~

This commit is contained in:
Faris Ansari 2018-07-14 12:36:46 +05:30
parent 00b93cac73
commit 0bf4e68339

View File

@ -2,7 +2,15 @@
module.exports = {
"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": {},
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer": {}