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
|
dist
|
||||||
build
|
build
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
test/dist
|
test/dist
|
||||||
|
package-lock.json
|
||||||
13
package.json
13
package.json
@ -10,8 +10,8 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "NODE_ENV=production node build.js",
|
"build": "cross-env NODE_ENV=production node build.js",
|
||||||
"dev": "NODE_ENV=development node build.js",
|
"dev": " cross-env NODE_ENV=development node build.js",
|
||||||
"test": "yarn build && cd test && mocha 'index.js' --no-timeout --exit",
|
"test": "yarn build && cd test && mocha 'index.js' --no-timeout --exit",
|
||||||
"fmt": "prettier --write .",
|
"fmt": "prettier --write .",
|
||||||
"fmt:check": "prettier --check ."
|
"fmt:check": "prettier --check ."
|
||||||
@ -29,11 +29,11 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"autoprefixer": "^10.2.4",
|
"autoprefixer": "^10.2.4",
|
||||||
"fs-extra": "^9.1.0",
|
"fs-extra": "^9.1.0",
|
||||||
"less": "^4.1.1",
|
"less": "^4.x",
|
||||||
"postcss": "^8.2.6",
|
"postcss": "8.x",
|
||||||
"postcss-modules": "^4.0.0",
|
"postcss-modules": "^4.0.0",
|
||||||
"sass": "^1.32.8",
|
"sass": "^1.x",
|
||||||
"stylus": "^0.54.8",
|
"stylus": "^0.x",
|
||||||
"tmp": "^0.2.1"
|
"tmp": "^0.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -46,6 +46,7 @@
|
|||||||
"@types/stylus": "^0.48.33",
|
"@types/stylus": "^0.48.33",
|
||||||
"@types/tmp": "^0.2.0",
|
"@types/tmp": "^0.2.0",
|
||||||
"chai": "^4.3.0",
|
"chai": "^4.3.0",
|
||||||
|
"cross-env": "^7.0.3",
|
||||||
"esbuild": "^0.8.49",
|
"esbuild": "^0.8.49",
|
||||||
"mocha": "^8.3.0",
|
"mocha": "^8.3.0",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.2.1",
|
||||||
|
|||||||
@ -124,9 +124,9 @@ const postCSSPlugin = ({
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
resolveDir,
|
resolveDir,
|
||||||
contents: `import "${args.path}";\nexport default ${JSON.stringify(
|
contents: `import ${JSON.stringify(
|
||||||
mod && mod.map ? mod.map : {}
|
args.path
|
||||||
)};`
|
)};\nexport default ${JSON.stringify(mod && mod.map ? mod.map : {})};`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user