Merge pull request #4 from g45t345rt/master
Fix for args.path escaping backslash on windows
This commit is contained in:
commit
4149a72496
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,4 +2,5 @@ node_modules
|
||||
dist
|
||||
build
|
||||
yarn-error.log
|
||||
test/dist
|
||||
test/dist
|
||||
package-lock.json
|
||||
13
package.json
13
package.json
@ -10,8 +10,8 @@
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "NODE_ENV=production node build.js",
|
||||
"dev": "NODE_ENV=development node build.js",
|
||||
"build": "cross-env NODE_ENV=production node build.js",
|
||||
"dev": " cross-env NODE_ENV=development node build.js",
|
||||
"test": "yarn build && cd test && mocha 'index.js' --no-timeout --exit",
|
||||
"fmt": "prettier --write .",
|
||||
"fmt:check": "prettier --check ."
|
||||
@ -29,11 +29,11 @@
|
||||
"dependencies": {
|
||||
"autoprefixer": "^10.2.4",
|
||||
"fs-extra": "^9.1.0",
|
||||
"less": "^4.1.1",
|
||||
"postcss": "^8.2.6",
|
||||
"less": "^4.x",
|
||||
"postcss": "8.x",
|
||||
"postcss-modules": "^4.0.0",
|
||||
"sass": "^1.32.8",
|
||||
"stylus": "^0.54.8",
|
||||
"sass": "^1.x",
|
||||
"stylus": "^0.x",
|
||||
"tmp": "^0.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -46,6 +46,7 @@
|
||||
"@types/stylus": "^0.48.33",
|
||||
"@types/tmp": "^0.2.0",
|
||||
"chai": "^4.3.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild": "^0.8.49",
|
||||
"mocha": "^8.3.0",
|
||||
"prettier": "^2.2.1",
|
||||
|
||||
@ -124,9 +124,9 @@ const postCSSPlugin = ({
|
||||
|
||||
return {
|
||||
resolveDir,
|
||||
contents: `import "${args.path}";\nexport default ${JSON.stringify(
|
||||
mod && mod.map ? mod.map : {}
|
||||
)};`
|
||||
contents: `import ${JSON.stringify(
|
||||
args.path
|
||||
)};\nexport default ${JSON.stringify(mod && mod.map ? mod.map : {})};`
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user