課程
/前端開發(fā)
/前端工具
/Vue+Webpack打造todo應用
為什么require('../config')實際上是require('../config/index.js'),在哪里可以看到配置
2018-01-20
源自:Vue+Webpack打造todo應用 2-1
正在回答
https://nodejs.org/api/modules.html#modules_all_together
node文檔中有詳細的解釋,也可以參考阮大大的文章:
http://www.ruanyifeng.com/blog/2015/05/require.html
慕桂英8064904 提問者
在老師得代碼文件之中都沒有config這個文件,你得這個路徑是?
舉報
用前端最熱門框架Vue+最火打包工具Webpack打造todo應用
2 回答Error: No PostCSS Config found
2 回答配置了webpack-dev-server 運行npm run dev 報錯 config is not defined
4 回答const path = require('path')報錯
2 回答根據(jù)老師設(shè)置的,報config is not defined
3 回答配置了vue-loader,運行npm run dev總是報錯?Module Error (from ./node_modules/vue-loader/lib/index.js): vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2018-01-20
https://nodejs.org/api/modules.html#modules_all_together
node文檔中有詳細的解釋,也可以參考阮大大的文章:
http://www.ruanyifeng.com/blog/2015/05/require.html
2018-01-20
在老師得代碼文件之中都沒有config這個文件,你得這個路徑是?