Skip to content

Commit 6abc79c

Browse files
committed
Remove unneeded PostCSS trim plugin
1 parent 3193ff3 commit 6abc79c

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

build/rollup.config.js

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@ import { terser } from 'rollup-plugin-terser'
1010
import del from 'rollup-plugin-delete'
1111
import copy from 'rollup-plugin-copy'
1212

13-
import _postcss from 'postcss'
14-
15-
const postcssTrim = _postcss.plugin('postcss-trim', () => css => {
16-
css.raws.after = css.raws.after.replace(/^\n*$/g, '')
17-
})
18-
1913
const globals = {
20-
'vue': 'Vue'
14+
vue: 'Vue'
2115
}
2216

2317
const componentName = 'FlowForm'
@@ -44,8 +38,7 @@ export default [
4438
output: 'css',
4539
extract: 'vue-flow-form.css',
4640
plugins: [
47-
postcssImport(),
48-
postcssTrim()
41+
postcssImport()
4942
]
5043
}),
5144
css(),
@@ -81,8 +74,7 @@ export default [
8174
output: 'css',
8275
extract: 'vue-flow-form.css',
8376
plugins: [
84-
postcssImport(),
85-
postcssTrim()
77+
postcssImport()
8678
]
8779
}),
8880
css(),
@@ -118,8 +110,7 @@ export default [
118110
output: 'css',
119111
extract: 'vue-flow-form.css',
120112
plugins: [
121-
postcssImport(),
122-
postcssTrim()
113+
postcssImport()
123114
]
124115
}),
125116
css(),
@@ -155,8 +146,7 @@ export default [
155146
output: 'css',
156147
extract: 'vue-flow-form.min.css',
157148
plugins: [
158-
postcssImport(),
159-
postcssTrim()
149+
postcssImport()
160150
],
161151
sourceMap: true,
162152
minimize: true

0 commit comments

Comments
 (0)