Skip to content

Commit 694c4b5

Browse files
committed
Update rollup and postcss config
1 parent a4acb6a commit 694c4b5

File tree

4 files changed

+247
-19
lines changed

4 files changed

+247
-19
lines changed

Diff for: build/rollup.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,17 @@ export default [
179179
copy({
180180
targets: [
181181
{
182-
src: 'examples/questionnaire/branding.css',
182+
src: 'src/assets/css/themes/theme-minimal.css',
183183
dest: 'dist',
184184
rename: 'vue-flow-form.theme-minimal.css'
185185
},
186186
{
187-
src: 'src/assets/css/themes/green-theme.css',
187+
src: 'src/assets/css/themes/theme-green.css',
188188
dest: 'dist',
189189
rename: 'vue-flow-form.theme-green.css'
190190
},
191191
{
192-
src: 'src/assets/css/themes/purple-theme.css',
192+
src: 'src/assets/css/themes/theme-purple.css',
193193
dest: 'dist',
194194
rename: 'vue-flow-form.theme-purple.css'
195195
}

Diff for: package-lock.json

+237-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
],
3737
"scripts": {
3838
"serve": "vue-cli-service serve",
39-
"build": "vue-cli-service build && npm run cssmin",
40-
"build:npm": "rollup --config build/rollup.config.js",
41-
"cssmin": "postcss dist/vue-flow-form.theme-minimal.css > dist/vue-flow-form.theme-minimal.min.css && postcss dist/vue-flow-form.theme-green.css > dist/vue-flow-form.theme-green.min.css && dist/vue-flow-form.theme-purple.css > dist/vue-flow-form.theme-purple.min.css"
39+
"build": "vue-cli-service build",
40+
"build:npm": "rollup --config build/rollup.config.js && npm run cssmin",
41+
"cssmin": "postcss dist/vue-flow-form.theme-minimal.css -o dist/vue-flow-form.theme-minimal.min.css && postcss dist/vue-flow-form.theme-green.css -o dist/vue-flow-form.theme-green.min.css && postcss dist/vue-flow-form.theme-purple.css -o dist/vue-flow-form.theme-purple.min.css"
4242
},
4343
"eslintConfig": {
4444
"root": true,
@@ -64,6 +64,8 @@
6464
"babel-helper-vue-jsx-merge-props": "^2.0.2",
6565
"babel-plugin-syntax-jsx": "^6.18.0",
6666
"babel-plugin-transform-vue-jsx": "^3.3.0",
67+
"postcss": "^7.0.32",
68+
"postcss-cli": "^7.1.2",
6769
"postcss-import": "^12.0.1",
6870
"prettier-eslint": "^8.8.2",
6971
"rollup": "^1.17.0",

0 commit comments

Comments
 (0)