mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-26 07:05:56 -05:00
a03b98631a
* Changes to allow active development of UI using webpack and hotloading. * Update to webpack 4 (will make this work) * Update webpack.config.js accordingly * Move webpack.config.js to its own directory * Split webpack.config.js into base.config.js, dev.config.js and prod.config.js * Update configs to be "right" for development vs production using --mode * Want configuration through (optional) local file that is not checked in * Updated package.json for newer babel-loader * Put in a proxy to localhost port 8080 for evelopment server. This allows "yarn start" to work on the machine where MoonFire's server is running. This would be the default situation. Users in a different setup can change the proxy settings.
35 lines
1.0 KiB
JSON
35 lines
1.0 KiB
JSON
{
|
|
"author": "Scott Lamb <slamb@slamb.org>",
|
|
"bugs": {
|
|
"url": "https://github.com/scottlamb/moonfire-nvr/issues"
|
|
},
|
|
"scripts": {
|
|
"start": "webpack-dev-server --mode development --config webpack/dev.config.js --progress",
|
|
"build": "webpack --mode production --config webpack/prod.config.js && cp ui-src/index.html ui-dist/"
|
|
},
|
|
"dependencies": {
|
|
"jquery": "^3.2.1",
|
|
"jquery-ui": "^1.12.1",
|
|
"moment-timezone": "^0.5.13",
|
|
"webpack-merge": "^4.1.2"
|
|
},
|
|
"homepage": "https://github.com/scottlamb/moonfire-nvr",
|
|
"license": "GPL-3.0",
|
|
"name": "moonfire-nvr",
|
|
"repository": "scottlamb/moonfire-nvr",
|
|
"version": "0.1.0",
|
|
"devDependencies": {
|
|
"babel-core": "^6.26.0",
|
|
"babel-loader": "^7.1.4",
|
|
"babel-minify-webpack-plugin": "^0.3.0",
|
|
"babel-preset-env": "^1.6.1",
|
|
"clean-webpack-plugin": "^0.1.18",
|
|
"css-loader": "^0.28.10",
|
|
"file-loader": "^1.1.11",
|
|
"style-loader": "^0.19.0",
|
|
"webpack": "^4.0.1",
|
|
"webpack-cli": "^2.0.10",
|
|
"webpack-dev-server": "^3.1.0"
|
|
}
|
|
}
|