使用工具idea
一、vue-loader+webpack项目配置
1.在盘符E:\project\idechuangyeproject\pom 新建vue-ssr-tech的文件夹
2.idea打开工程项目pom,选中vue-ssr-tech文件右键选择Open in Terminal打开终端
终端输入:npm init //初始化成一个npm的项目
E:\project\idechuangyeproject\pom\vue-ssr-tech>npm init This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sensible defaults. See `npm help json` for definitive documentation on these fields and exactly what they do. Use `npm install <pkg>` afterwards to install a package and save it as a dependency in the package.json file. Press ^C at any time to quit. package name: (vue-ssr-tech) //此处下面全部默认:回车往下 version: (1.0.0) description: entry point: (index.js) test command: git repository: keywords: author: license: (ISC) About to write to E:\project\idechuangyeproject\pom\vue-ssr-tech\package.json: { "name": "vue-ssr-tech", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC" } Is this OK? (yes) yes //输入yes进入下一步