1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-09 07:36:30 +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

7
.gitignore vendored
View File

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

View File

@@ -39,10 +39,10 @@ $ npm install
- 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

View File

@@ -1,11 +1,14 @@
{
"name": "csslayout",
"scripts": {
"dev": "webpack --mode=development",
"dev-server": "webpack-dev-server",
"copy": "cp client/index.html public",
"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",
"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": {
"@loadable/component": "^5.10.3",
@@ -27,7 +30,7 @@
"webpack-dev-server": "^3.9.0"
},
"reactSnap": {
"source": "dist",
"source": "public",
"minifyHtml": {
"collapseWhitespace": false,
"removeComments": false