nuxt will report an error
SyntaxError
Invalid or unexpected token
I find that it is caused by @ import statement, but I don"t know how to correct it
plugins/element-ui.js
import Vue from "vue"
import Element from "element-ui/lib/element-ui.common"
import locale from "element-ui/lib/locale/lang/en"
import "../assets/css/element.scss"
export default () => {
Vue.use(Element, { locale })
}
element.scss
/* */
$--color-primary: red;
/* icon */
$--font-path: "~element-ui/lib/theme-chalk/fonts";
@import "~element-ui/packages/theme-chalk/src/index";