Browse Source

Added local develop readme

zhixin 4 years ago
parent
commit
7533354af1
2 changed files with 18 additions and 0 deletions
  1. 16 0
      README.md
  2. 2 0
      rollup.config.js

+ 16 - 0
README.md

@@ -96,6 +96,22 @@ This project exists thanks to all the people who contribute. [[Contribute](CONTR
 
 Look at the [Change Log](https://github.com/wenzhixin/bootstrap-table/blob/master/CHANGELOG.md)
 
+## Local develop
+
+To develop bootstrap-table locally please run:
+
+```bash
+mkdir bootstrap-table-dev
+cd bootstrap-table-dev
+git clone https://github.com/wenzhixin/bootstrap-table
+git clone https://github.com/wenzhixin/bootstrap-table-examples
+
+yarn add http-server
+npx http-server
+```
+
+And then open: http://localhost:8081/bootstrap-table-examples
+
 ## Local build
 
 To build bootstrap-table locally please run:

+ 2 - 0
rollup.config.js

@@ -51,6 +51,7 @@ if (process.env.NODE_ENV === 'production') {
 
 for (const file of files) {
   let out = `dist/${file.replace('src/', '')}`
+
   if (process.env.NODE_ENV === 'production') {
     out = out.replace(/.js$/, '.min.js')
   }
@@ -68,6 +69,7 @@ for (const file of files) {
 }
 
 let out = 'dist/bootstrap-table-locale-all.js'
+
 if (process.env.NODE_ENV === 'production') {
   out = out.replace(/.js$/, '.min.js')
 }