解决 低版本 下的配置
package.json
{
"name": "webpacks",
"version": "1.0.0",
"description": "A Vue.js project",
"private": true,
"scripts": {
"dev": "webpack-dev-server",
"start": "npm run dev",
"lint": "eslint --ext .js,.vue src",
"build": "webpack"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"babel-runtime": "^6.26.0",
"css-loader": "^1.0.0",
"file-loader": "^3.0.1",
"html-webpack-plugin": "^3.2.0",
"less": "^2.3.1",
"less-loader": "^4.0.0",
"style-loader": "^0.23.1",
"url-loader": "^1.1.2",
"vue": "^2.6.8",
"vue-loader": "^14.2.0",
"vue-template-compiler": "^2.5.16",
"webpack": "3.11.0",
"webpack-cli": "^3.0.2",
"webpack-dev-middleware": "^1.12.0",
"webpack-dev-server": "^2.2.1"
}
}
网友评论