This repository was archived by the owner on Jan 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +40
-1
lines changed Expand file tree Collapse file tree 1 file changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,45 @@ rollup({
56
56
});
57
57
```
58
58
59
+ Below is how you can use it from the command line with Bublé.
60
+ Run ` rollup -c ` and it will find the config.
61
+
62
+ ``` js
63
+ // rollup.config.js
64
+ import vue from ' rollup-plugin-vue'
65
+ import buble from ' rollup-plugin-buble' // rollup-plugin-babel also works
66
+
67
+ export default {
68
+ entry: ' index.js' ,
69
+ plugins: [
70
+ vue (),
71
+ buble ()
72
+ ]
73
+ }
74
+ ```
75
+
76
+ ### Options
77
+
78
+ ``` js
79
+ vue ({
80
+ // Filename to write all styles to
81
+ css: ' bundle.scss' ,
82
+
83
+ // Callback that will be called ongenerate with two arguments:
84
+ // - styles: the contents of all style tags combined
85
+ // - styleNodes: an array of style objects: [{lang: 'css', content: 'body { color: green }'}]
86
+ css : function (styles , styleNodes ) {
87
+ writeFileSync (cssPath, styles)
88
+ }
89
+
90
+ // Disable any style output or callbacks
91
+ css: false ,
92
+
93
+ // Default behaviour is to write all styles to the bundle destination where .js is replaced by .css
94
+ css: null
95
+ })
96
+ ```
97
+
59
98
## Change log
60
99
61
100
Please see [ CHANGELOG] ( CHANGELOG.md ) for more information what has changed recently.
@@ -77,7 +116,7 @@ If you discover any security related issues, please email hi@znck.me instead of
77
116
## Credits
78
117
79
118
- [ Rahul Kadyan] [ link-author ]
80
- - [ Thomas Ghysels] ( https://github/thgh )
119
+ - [ Thomas Ghysels] ( https://github.com /thgh )
81
120
- [ All Contributors] [ link-contributors ]
82
121
83
122
## License
You can’t perform that action at this time.
0 commit comments