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 path = require("path");
|
||||||
let ExtractTextPlugin = require('extract-text-webpack-plugin');
|
let ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
let LiveReloadPlugin = require('webpack-livereload-plugin');
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
|
@ -19,7 +18,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
new LiveReloadPlugin(),
|
|
||||||
new ExtractTextPlugin('[name].css', {
|
new ExtractTextPlugin('[name].css', {
|
||||||
allChunks: true
|
allChunks: true
|
||||||
})
|
})
|
||||||
|
@ -84,5 +82,11 @@ module.exports = {
|
||||||
"leaflet": "leaflet",
|
"leaflet": "leaflet",
|
||||||
"ReactDOM": "ReactDOM",
|
"ReactDOM": "ReactDOM",
|
||||||
"React": "React"
|
"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()]
|
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]
|
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
|
# Add mount points for each extended platform that might require us to do so
|
||||||
|
|
||||||
return mount_points + [
|
return mount_points + [
|
||||||
MountPoint("projects/(?P<project_pk>[^/.]+)/tasks/(?P<pk>[^/.]+)/import", ImportFolderTaskView.as_view()),
|
MountPoint("projects/(?P<project_pk>[^/.]+)/tasks/(?P<pk>[^/.]+)/import", ImportFolderTaskView.as_view()),
|
||||||
MountPoint("projects/(?P<project_pk>[^/.]+)/tasks/(?P<pk>[^/.]+)/checkforurl", CheckUrlTaskView.as_view()),
|
MountPoint("projects/(?P<project_pk>[^/.]+)/tasks/(?P<pk>[^/.]+)/checkforurl", CheckUrlTaskView.as_view()),
|
||||||
|
|
|
@ -90,5 +90,11 @@ module.exports = {
|
||||||
"jquery": "jQuery",
|
"jquery": "jQuery",
|
||||||
"SystemJS": "SystemJS",
|
"SystemJS": "SystemJS",
|
||||||
"React": "React"
|
"React": "React"
|
||||||
|
},
|
||||||
|
|
||||||
|
watchOptions: {
|
||||||
|
ignored: /node_modules/,
|
||||||
|
aggregateTimeout: 300,
|
||||||
|
poll: 1000
|
||||||
}
|
}
|
||||||
}
|
}
|
Ładowanie…
Reference in New Issue