.vue file uses < style lang= "postcss" >, error loading
related codes
//webpack.config.js
module: {
rules: [
{
test: /\.css$/,
include: [path.resolve(__dirname, "./src")],
exclude: /node_modules/,
use: [
"vue-style-loader",
{
loader: "css-loader",
options: {
modules: false,
importLoaders: 1
}
},
{
loader: "postcss-loader",
options: {
plugins: [
require("postcss-import")(),
require("postcss-url")(),
require("autoprefixer")()
]
}
}
]
}
]
}
error message
Module parse failed: Unexpected token (54:7)
You may need an appropriate loader to handle this file type.
|
|
> ul, li {
| list-style-type: none;
| }