1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-09-09 05:41:08 +02:00

Use webpack

This commit is contained in:
Phuoc Nguyen
2019-11-23 10:23:13 +07:00
parent 83e61eb7e3
commit ada4976227
9 changed files with 4029 additions and 290 deletions

View File

@@ -1,13 +1,15 @@
{
"name": "csslayout",
"scripts": {
"dev": "parcel client/index.html --out-dir dist",
"build": "parcel build client/index.html --out-dir dist",
"sitemap": "cp robots.txt dist && node bin/sitemap && cp sitemap.xml dist",
"prebuild": "rm -rf dist/*",
"dev": "webpack --mode=development",
"dev-server": "webpack-dev-server",
"build": "webpack --mode=production",
"sitemap": "cp robots.txt public && node bin/sitemap && cp sitemap.xml public",
"prebuild": "rm -rf public/*",
"postbuild": "npm run sitemap && react-snap"
},
"dependencies": {
"@loadable/component": "^5.10.3",
"highlight.js": "^9.16.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
@@ -15,7 +17,16 @@
"react-snap": "^1.23.0"
},
"devDependencies": {
"parcel-bundler": "^1.12.4"
"@babel/core": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@babel/preset-react": "^7.7.4",
"babel-loader": "^8.0.6",
"css-loader": "^3.2.0",
"parcel-bundler": "^1.12.4",
"style-loader": "^1.0.0",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.9.0"
},
"reactSnap": {
"source": "dist",