npm run webpack
> webpack-loader@1.0.0 webpack F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader
> webpack --config webpack.config.js --progress --display-modules --colors --display-reason
F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\webpack-cli\bin\webpack.js:237
throw err;
^
ReferenceError: path is not defined
at Object.<anonymous> (F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\webpack.config.js:13:8)
at Module._compile (F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\v8-compile-cache\v8-compile-cache.js:178:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
at WEBPACK_OPTIONS (F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\webpack-cli\bin\convert-argv.js:133:13)
at requireConfig (F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\webpack-cli\bin\convert-argv.js:135:6)
at F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\webpack-cli\bin\convert-argv.js:142:17
at Array.forEach (<anonymous>)
at module.exports (F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\webpack-cli\bin\convert-argv.js:140:15)
at yargs.parse (F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\webpack-cli\bin\webpack.js:234:39)
at Object.parse (F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\yargs\yargs.js:543:18)
at F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\webpack-cli\bin\webpack.js:212:8
at Object.<anonymous> (F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\webpack-cli\bin\webpack.js:502:3)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (F:\前端学习集合\案例\完整项目开发 慕课网\imooc\webpack-loader\node_modules\webpack\bin\webpack.js:12:2)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webpack-loader@1.0.0 webpack: `webpack --config webpack.config.js --progress --display-modules --colors --display-reason`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webpack-loader@1.0.0 webpack script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\29176\AppData\Roaming\npm-cache\_logs\2018-03-13T13_41_28_552Z-debug.log
config配置