diff --git a/CONST_create_template/geoportal/webpack.commons.js b/CONST_create_template/geoportal/webpack.commons.js deleted file mode 100644 index 7b5d7b66d..000000000 --- a/CONST_create_template/geoportal/webpack.commons.js +++ /dev/null @@ -1,21 +0,0 @@ -const commons = require('ngeo/buildtools/webpack.commons.js'); -const SassPlugin = require('ngeo/buildtools/webpack.plugin.js'); - -const config = commons({ - DllReferencePluginOptions: { - context: '/usr/lib/', - } -}); - -for (const plugin of config.plugins) { - if (plugin instanceof SassPlugin) { - plugin.options.preReplacements = [ - [new RegExp('\\${VISIBLE_ENTRY_POINT}', 'g'), 'visible-entry-point'], - ]; - plugin.options.postReplacements = [ - [new RegExp('visible-entry-point', 'g'), '${VISIBLE_ENTRY_POINT}'], - ]; - } -} - -module.exports = () => config; diff --git a/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/MainController.js b/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/MainController.js index cfe68bc4e..6662fc204 100644 --- a/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/MainController.js +++ b/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/MainController.js @@ -42,6 +42,8 @@ import {toRadians} from 'ol/math.js'; import {listen} from 'ol/events.js'; import {isValidSerial} from '../utils.js'; +import bootstrapApp from './bootstrap.js'; + import '../../less/geoportailv3.less'; /* eslint-disable no-unused-vars */ @@ -1824,5 +1826,6 @@ MainController.prototype.isDisconnectedOrOffline = function() { appModule.controller('MainController', MainController); +bootstrapApp(appModule); export default MainController; diff --git a/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/main.html.ejs b/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/main.html.ejs index f3fcb2c44..02e65c2a6 100644 --- a/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/main.html.ejs +++ b/geoportal/geoportailv3_geoportal/static-ngeo/js/apps/main.html.ejs @@ -1,5 +1,5 @@ - +