1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-10 16:14:19 +02:00

Move index.html back to client

This commit is contained in:
Phuoc Nguyen
2019-11-23 11:49:40 +07:00
parent 27c4b2a5c9
commit 56e701bd20
4 changed files with 11 additions and 11 deletions

5
.gitignore vendored
View File

@@ -1,5 +1,2 @@
.cache public
dist
node_modules node_modules
public/bundle.js
public/bundle.js.map

View File

@@ -39,10 +39,10 @@ $ npm install
- Run it on the local: - Run it on the local:
~~~ ~~~
$ npm run dev $ npm run dev-server
~~~ ~~~
Visit http://localhost:1234 to see it in action. Visit http://localhost:8080 to see it in action.
## Contributing ## Contributing

View File

@@ -1,11 +1,14 @@
{ {
"name": "csslayout", "name": "csslayout",
"scripts": { "scripts": {
"dev": "webpack --mode=development", "copy": "cp client/index.html public",
"dev-server": "webpack-dev-server", "dev": "npm run copy && webpack --mode=development",
"dev-server": "npm run copy && webpack-dev-server",
"prebuild": "rm -rf public/* && npm run copy",
"build": "webpack --mode=production", "build": "webpack --mode=production",
"sitemap": "cp robots.txt public && node bin/sitemap && cp sitemap.xml public", "sitemap": "cp robots.txt public && node bin/sitemap && cp sitemap.xml public",
"postbuild": "npm run sitemap && react-snap" "export": "react-snap",
"postbuild": "npm run sitemap && npm run export"
}, },
"dependencies": { "dependencies": {
"@loadable/component": "^5.10.3", "@loadable/component": "^5.10.3",
@@ -27,7 +30,7 @@
"webpack-dev-server": "^3.9.0" "webpack-dev-server": "^3.9.0"
}, },
"reactSnap": { "reactSnap": {
"source": "dist", "source": "public",
"minifyHtml": { "minifyHtml": {
"collapseWhitespace": false, "collapseWhitespace": false,
"removeComments": false "removeComments": false