課程
/前端開發(fā)
/前端工具
/Vue+Webpack打造todo應(yīng)用
module: {
rules: [
{
test: /.vue$/,
loader: "vue-loader"
}
]
2018-12-03
源自:Vue+Webpack打造todo應(yīng)用 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'
舉報(bào)
用前端最熱門框架Vue+最火打包工具Webpack打造todo應(yīng)用
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.
1 回答stylus不能解析 報(bào)這個(gè)錯(cuò)You may need an appropriate loader to handle this file type.
3 回答啟動(dòng)報(bào)錯(cuò)You may need an appropriate loader to handle this file type. 都已經(jīng)加載了
9 回答ERROR in ./src/todo/footer.jsx Module parse failed: Unexpected token (9:6) You may need an appropriate loader to handle this file type.
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2018-12-05
還要加上包
2018-12-05
大佬,加上這段,{
test: /\.css$/,
use: [
'vue-style-loader',
'css-loader'
]
}