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:
7
.gitignore
vendored
7
.gitignore
vendored
@@ -1,5 +1,2 @@
|
||||
.cache
|
||||
dist
|
||||
node_modules
|
||||
public/bundle.js
|
||||
public/bundle.js.map
|
||||
public
|
||||
node_modules
|
@@ -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
|
||||
|
||||
|
11
package.json
11
package.json
@@ -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
|
||||
|
Reference in New Issue
Block a user