小丑瓜
2018-12-03 14:12
module: {
rules: [
{
test: /.vue$/,
loader: "vue-loader"
}
]
}
const path = require('path'); const VueLoaderPlugin = require('vue-loader/lib/plugin'); module.exports = { entry: path.join(__dirname, 'src/index.js'), output: {filename: 'bundle.js',path: path.join(__dirname, 'dist')}, module: { rules: [ { test: /\.vue$/,loader: 'vue-loader' }, { test: /\.css$/, use: [ "vue-style-loader", "css-loader" ]}] }, plugins: [new VueLoaderPlugin()] }
还要加上包
"vue-style-loader": "^4.1.2"
大佬,加上这段,{
test: /\.css$/,
use: [
'vue-style-loader',
'css-loader'
]
}
Vue+Webpack打造todo应用
84605 学习 · 787 问题
相似问题