postcss plugin to new snopack format (#51)

This commit is contained in:
Erik Jan de Wit 2020-09-01 22:17:48 +02:00 committed by GitHub
parent adbb2c3d3f
commit 8e664659b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 10 deletions

View file

@ -33,6 +33,7 @@
"@babel/core": "^7.10.5",
"@babel/preset-typescript": "^7.10.4",
"@snowpack/app-scripts-react": "^1.10.0",
"@snowpack/plugin-postcss": "^1.0.2",
"@snowpack/plugin-webpack": "^2.0.6",
"@storybook/addon-actions": "^5.3.19",
"@storybook/addon-info": "^5.3.19",

View file

@ -1,5 +1,6 @@
const postImport = require('postcss-import');
module.exports = {
plugins: [
require('postcss-import')({path: ['node_modules/@patternfly/patternfly/']}),
postImport({path: ['./node_modules/@patternfly/patternfly/']}),
]
}

View file

@ -1,11 +1,7 @@
module.exports = {
"extends": "@snowpack/app-scripts-react",
"scripts": {
"build:css": "postcss"
extends: "@snowpack/app-scripts-react",
proxy: {
"/admin": process.env.BACKEND_URL,
},
"proxy": {
"/admin": process.env.BACKEND_URL
},
"plugins": ["@snowpack/plugin-webpack"]
}
plugins: ["@snowpack/plugin-postcss", "@snowpack/plugin-webpack"],
};

View file

@ -2701,6 +2701,11 @@
dotenv "^8.2.0"
dotenv-expand "^5.1.0"
"@snowpack/plugin-postcss@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@snowpack/plugin-postcss/-/plugin-postcss-1.0.2.tgz#902eacf40ecd465be52137b01dbbfc773902be6c"
integrity sha512-DRRBe2uySvuQ9AEeOnJEtZEcjS8h9g3f8idGHohVcU0G1Anff+MQgEEZ2sFgrFuERVFaqoFTz3av3ArBkT5G8A==
"@snowpack/plugin-react-refresh@^2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@snowpack/plugin-react-refresh/-/plugin-react-refresh-2.1.0.tgz#7e8c66250e5823413155c027d2cd4f3d1216d1e1"