mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
add description (README.md, webpack.config.js)
This commit is contained in:
parent
78653a8fd5
commit
799f4ee626
2 changed files with 18 additions and 3 deletions
|
|
@ -31,11 +31,20 @@ $ yarn run build
|
|||
# you need to run zeppelin backend instance also
|
||||
$ yarn run dev
|
||||
|
||||
# If you are using a custom port, you must use the 'SERVER_PORT' variable to run the web application development mode
|
||||
$ SERVER_PORT=8080 yarn run dev
|
||||
|
||||
# execute tests
|
||||
$ yarn run test
|
||||
```
|
||||
Supports the following options with using npm environment variable when running the web development mode.
|
||||
|
||||
```
|
||||
# if you are using a custom port instead of default(8080),
|
||||
# you must use the 'SERVER_PORT' variable to run the web application development mode
|
||||
$ SERVER_PORT=YOUR_ZEPPELIN_PORT yarn run dev
|
||||
|
||||
# if you want to use a web dev port instead of default(9000),
|
||||
# you can use the 'WEB_PORT' variable
|
||||
$ WEB_PORT=YOUR_WEB_DEV_PORT yarn run dev
|
||||
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
|
|
|||
|
|
@ -184,6 +184,10 @@ module.exports = function makeWebpackConfig () {
|
|||
test: /\.html$/,
|
||||
loader: 'raw'
|
||||
}, {
|
||||
// STRING REPLACE PLUGIN
|
||||
// reference: https://www.npmjs.com/package/string-replace-webpack-plugin
|
||||
// Allow for arbitrary strings to be replaced as part of the module build process
|
||||
// Configure replacements for file patterns
|
||||
test: /index.html$/,
|
||||
loader: stringReplacePlugin.replace({
|
||||
replacements: [{
|
||||
|
|
@ -278,6 +282,8 @@ module.exports = function makeWebpackConfig () {
|
|||
} else {
|
||||
config.plugins.push(
|
||||
new InsertLiveReloadPlugin(),
|
||||
// string replace plugin instance
|
||||
// reference: https://www.npmjs.com/package/string-replace-webpack-plugin
|
||||
new stringReplacePlugin()
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue