Merge pull request #157 from samuelthomas2774/escape-windows-paths
Escape SCSS import path
This commit is contained in:
commit
626b6cec64
|
@ -75,7 +75,7 @@ class Comms {
|
|||
BDIpc.on('bd-compileSass', o => {
|
||||
if (!o.args.path && !o.args.data) return o.reply('');
|
||||
if (typeof o.args.path === 'string' && typeof o.args.data === 'string') {
|
||||
o.args.data = `${o.args.data} @import '${o.args.path}';`;
|
||||
o.args.data = `${o.args.data} @import '${o.args.path.replace(/\\/g, '\\\\').replace(/'/g, '\\\'')}';`;
|
||||
o.args.path = undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue