diff --git a/example/README.md b/example/README.md index 43f3dee..0f97ad6 100644 --- a/example/README.md +++ b/example/README.md @@ -18,5 +18,5 @@ ls dist ``` cd example npm i -g rollup -rollup -c --input Hello.vue --output dist/bundle.js +rollup -c --input Hello.vue ``` diff --git a/example/rollup.config.js b/example/rollup.config.js index e4b0ae9..a29c309 100644 --- a/example/rollup.config.js +++ b/example/rollup.config.js @@ -2,6 +2,18 @@ const vue = require('../dist/rollup-plugin-vue.common.js'); const buble = require('rollup-plugin-buble'); + export default { - plugins: [ vue({compileTemplate: true}), buble() ], + name: 'helloRollupVue', + output: { + file: 'dist/bundle.js', + format: 'umd' + }, + plugins: [ + vue({ + compileTemplate: true, + css: 'dist/bundle.css' + }), + buble() + ] };