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