the error message appears when the project is running.
ERROR in. / src/App.vue?vue&type=style&index=0&lang=css
Module parse failed: Unexpected character"- sharp" (26:0)
You may need an appropriate loader to handle this file type.
the error message appears when the project is running.
ERROR in. / src/App.vue?vue&type=style&index=0&lang=css
Module parse failed: Unexpected character"- sharp" (26:0)
You may need an appropriate loader to handle this file type.
vue-loader@15.*, you need to configure css-loader separately.
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = {
// ...
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader'
},
{
test: /\.css$/,
use: ['style-loader','css-loader']
}
]
}
plugins: [
new VueLoaderPlugin()
]
}
Vue Loader v15 now requires an accompanying webpack plugin to function properly:
// webpack.config.js
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = {
// ...
plugins: [
new VueLoaderPlugin()
]
}
Previous: How to set the position of the axis to the lower point of the tail in echarts?
Next: Angular2 Chinese text box how can only enter text letters and underscores ah, preferably a command