[ADF-1544] app config file management refactoring (#2331)

* application configuration service refactoring

* fix demo shell

* remove logging to console
This commit is contained in:
Denys Vuika
2017-09-14 10:06:40 +01:00
committed by Eugenio Romano
parent d9bd59833c
commit e96f6aa481
25 changed files with 136 additions and 404 deletions

View File

@@ -98,12 +98,6 @@ module.exports = {
from: '**/*.json',
to: 'resources/i18n'
},
{
from: 'app.config-dev.json'
},
{
from: 'app.config-prod.json'
},
{
from: 'favicon-96x96.png'
},

View File

@@ -5,7 +5,7 @@ const commonConfig = require('./webpack.common.js');
const helpers = require('./helpers');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const HappyPack = require('happypack');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const alfrescoLibs = [
@@ -131,7 +131,11 @@ module.exports = webpackMerge(commonConfig, {
from: '**/*',
to: `assets/${lib}/i18n/`
}
})
}),
{
from: 'app.config-dev.json',
to: 'app.config.json'
}
]),
new CopyWebpackPlugin([
{

View File

@@ -100,6 +100,10 @@ module.exports = webpackMerge(commonConfig, {
context: `node_modules/ng2-alfresco-core/prebuilt-themes/`,
from: '**/*.css',
to: 'prebuilt-themes'
},
{
from: 'app.config-prod.json',
to: 'app.config.json'
}
]),
new webpack.NoEmitOnErrorsPlugin(),