Created
May 18, 2018 02:24
-
-
Save pjchender/246327a40dea63c5adf50eaba32c9db4 to your computer and use it in GitHub Desktop.
Webpack 4 常用設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// package.json | |
{ | |
"name": "webpack-sandbox", | |
"sideEffects": false, | |
"version": "1.0.0", | |
"description": "", | |
"private": true, | |
"scripts": { | |
"build": "webpack -p", | |
"watch": "webpack --watch", // 當檔案有變更時會重 build | |
"start": "webpack-dev-server --open --inline", // 啟動 server + 檔案變更重 build + 重新整理頁面 | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"devDependencies": { | |
"clean-webpack-plugin": "^0.1.19", | |
"css-loader": "^0.28.11", | |
"csv-loader": "^2.1.1", | |
"file-loader": "^1.1.11", | |
"html-webpack-plugin": "^3.2.0", | |
"node-sass": "^4.9.0", | |
"sass-loader": "^7.0.1", | |
"style-loader": "^0.21.0", | |
"webpack": "^4.7.0", | |
"webpack-cli": "^2.1.2", | |
"webpack-dev-server": "^3.1.4", | |
"webpack-merge": "^4.1.2", | |
"xml-loader": "^1.2.1" | |
}, | |
"dependencies": { | |
"lodash": "^4.17.10" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment