Rollup, Vue and Buble, unexpected token in scss file

前端 未结 2 1385
日久生厌
日久生厌 2021-01-24 12:33

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.j         


        
2条回答
  •  独厮守ぢ
    2021-01-24 13:26

    Try this:

    $ npm install --save-dev rollup-plugin-scss
    

    In rollup.config.js:

    import scss from 'rollup-plugin-scss';      // handles '.css' and '.scss'
    
    plugins: { ..., scss() }
    

    I don't really know what's going on, here. The above worked for me (Vue.js 3 (beta) and rollup-plugin-vue 6.0.0-beta.6.

提交回复
热议问题