kopia lustrzana https://github.com/OpenDroneMap/WebODM
Better plugin watch logic
rodzic
2254ff6ca7
commit
7b15533541
|
@ -4,7 +4,6 @@ require("module").Module._initPaths();
|
|||
|
||||
let path = require("path");
|
||||
let ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
let LiveReloadPlugin = require('webpack-livereload-plugin');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
|
@ -19,7 +18,6 @@ module.exports = {
|
|||
},
|
||||
|
||||
plugins: [
|
||||
new LiveReloadPlugin(),
|
||||
new ExtractTextPlugin('[name].css', {
|
||||
allChunks: true
|
||||
})
|
||||
|
@ -84,5 +82,11 @@ module.exports = {
|
|||
"leaflet": "leaflet",
|
||||
"ReactDOM": "ReactDOM",
|
||||
"React": "React"
|
||||
},
|
||||
|
||||
watchOptions: {
|
||||
ignored: /node_modules/,
|
||||
aggregateTimeout: 300,
|
||||
poll: 1000
|
||||
}
|
||||
}
|
|
@ -25,6 +25,7 @@ class Plugin(PluginBase):
|
|||
api_views = [api_view for platform in get_all_extended_platforms() for api_view in platform.get_api_views()]
|
||||
mount_points = [MountPoint(path, view) for (path, view) in api_views]
|
||||
# Add mount points for each extended platform that might require us to do so
|
||||
|
||||
return mount_points + [
|
||||
MountPoint("projects/(?P<project_pk>[^/.]+)/tasks/(?P<pk>[^/.]+)/import", ImportFolderTaskView.as_view()),
|
||||
MountPoint("projects/(?P<project_pk>[^/.]+)/tasks/(?P<pk>[^/.]+)/checkforurl", CheckUrlTaskView.as_view()),
|
||||
|
|
|
@ -90,5 +90,11 @@ module.exports = {
|
|||
"jquery": "jQuery",
|
||||
"SystemJS": "SystemJS",
|
||||
"React": "React"
|
||||
},
|
||||
|
||||
watchOptions: {
|
||||
ignored: /node_modules/,
|
||||
aggregateTimeout: 300,
|
||||
poll: 1000
|
||||
}
|
||||
}
|
Ładowanie…
Reference in New Issue