課程
/前端開發
/前端工具
/Vue+Webpack打造todo應用
module: {
rules: [
{
test: /.vue$/,
loader: "vue-loader"
}
]
2018-12-03
源自:Vue+Webpack打造todo應用 2-1
正在回答
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應用
4 回答You may need an appropriate loader to handle this file type
4 回答stylus不能解析You may need an appropriate loader to handle this file type.
3 回答啟動報錯You may need an appropriate loader to handle this file type. 都已經加載了
1 回答stylus不能解析 報這個錯You may need an appropriate loader to handle this file type.
3 回答打包報錯Unexpected character '#' (1:0)You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2018-12-05
還要加上包
2018-12-05
大佬,加上這段,{
test: /\.css$/,
use: [
'vue-style-loader',
'css-loader'
]
}