We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 151e087 commit 6197578Copy full SHA for 6197578
packages/@vuepress/bundler-vite/package.json
@@ -35,6 +35,9 @@
35
"@vuepress/core": "2.0.0-beta.15",
36
"@vuepress/shared": "2.0.0-beta.7",
37
"@vuepress/utils": "2.0.0-beta.15",
38
+ "autoprefixer": "^10.2.5",
39
+ "postcss": "^8.3.0",
40
+ "postcss-csso": "^5.0.1",
41
"rollup": "^2.50.1",
42
"vite": "^2.3.4",
43
"vue": "^3.0.11",
packages/@vuepress/bundler-vite/src/plugin/createPlugin.ts
@@ -60,6 +60,14 @@ export const createPlugin = ({
60
resolve: {
61
alias: await resolveAlias({ app }),
62
},
63
+ css: {
64
+ postcss: {
65
+ plugins: [
66
+ require('autoprefixer'),
67
+ ...(isBuild ? [require('postcss-csso')] : []),
68
+ ],
69
+ },
70
71
server: {
72
host: app.options.host,
73
port: app.options.port,
0 commit comments