-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[!] (plugin styles) Error: EACCES: permission denied, open '/.config/postcssrc' #227
Comments
finally got windicss working with postcss // rollup.config.js
import { babel } from "@rollup/plugin-babel";
import WindiCSS from "rollup-plugin-windicss";
import postcss from "rollup-plugin-postcss";
export default {
plugins: [
// virtual:windi.css -> chunk id /@windicss/windi.css
WindiCSS({
//preflight: false, // normalize default styles
// scan js/ts files to find css class names
scan: {
dirs: [
'src/',
],
fileExtensions: ['html', 'js', 'ts', 'jsx', 'tsx']
}
}),
// solidjs: jsx to js
babel({
extensions,
babelHelpers: "bundled",
presets: [
["babel-preset-solid", solidOptions || {}],
//"@babel/preset-typescript",
["@babel/preset-env", { bugfixes: true, targets: babelTargets }],
],
}),
// inject css chunks into html
postcss({
//inject: { insertAt: 'top' },
}),
// import "./file" -> import "./file.jsx"
resolve({
extensions,
dedupe: [
//"svelte"
],
}),
],
} after trying
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rollup-plugin-styles is trying to read a postcss config from the root folder of my filesystem
caused by src/index.js per https://windicss.org/integrations/rollup.html
when i remove the import, i have no styles
node_modules/rollup-plugin-styles/dist/index.js
code is at https://github.com/milahu/solidjs-rollup-web-extension-starter
i guess/
means root of the project, so cosmiconfig should try/tmp/myproject/.config/postcssrc
rollup-plugin-windicss
transformsimport "virtual:windi.css"
to the rollup chunk id
/@windicss/windi.css
.other rollup chunks have absolute paths like
/tmp/myproject/src/index.js
The text was updated successfully, but these errors were encountered: