package.json

与 webpack.config.js 配合使用

目录结构
输入指令 npm i 得到 node_modules 均在当前文件下完成

内容:

{
"name": "6.5-1",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "webpack-dev-server --config webpack.config.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"css-loader": "^2.1.1",
"json-loader": "^0.5.7",
"style-loader": "^0.23.1",
"url-loader": "^1.1.2",
"open-browser-webpack-plugin": "^0.0.5"
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"babel-loader": "^8.0.6",
"webpack": "^3.8.1",
"webpack-dev-server": "^2.9.4"
}
}
posted on 2019-06-05 15:55  Web引领者  阅读(198)  评论(0编辑  收藏  举报