bublejs

Rollup, Vue and Buble, unexpected token in scss file

試著忘記壹切 提交于 2020-07-10 10:25:11
问题 I am trying to compile SFC with rollup, using Vue and Buble, following the example suplied in the Vue official page. But I keep getting this error: src/wrapper.js → dist/chat.min.js... [!] (plugin buble) SyntaxError: Unexpected token (2:0) src\components\Chat.vue?vue&type=style&index=0&lang.scss (2:0) 1 : 2 : .chat, .chat>*, .chat * { This is my rollup.config.js: import commonjs from '@rollup/plugin-commonjs'; // Convert CommonJS modules to ES6 import vue from 'rollup-plugin-vue'; // Handle

Rollup, Vue and Buble, unexpected token in scss file

懵懂的女人 提交于 2020-07-10 10:23:09
问题 I am trying to compile SFC with rollup, using Vue and Buble, following the example suplied in the Vue official page. But I keep getting this error: src/wrapper.js → dist/chat.min.js... [!] (plugin buble) SyntaxError: Unexpected token (2:0) src\components\Chat.vue?vue&type=style&index=0&lang.scss (2:0) 1 : 2 : .chat, .chat>*, .chat * { This is my rollup.config.js: import commonjs from '@rollup/plugin-commonjs'; // Convert CommonJS modules to ES6 import vue from 'rollup-plugin-vue'; // Handle