mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-721] Fix translation reference for dev task (#1923)
* move translation files in the bundles folder * fix after review ripristinate tslint and remove override tsconfig
This commit is contained in:
committed by
Eugenio Romano
parent
7572c8d098
commit
9db047f8fc
@@ -2,6 +2,7 @@ const webpack = require('webpack');
|
||||
const helpers = require('./helpers');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -110,6 +111,11 @@ module.exports = {
|
||||
},
|
||||
|
||||
plugins: [
|
||||
new CopyWebpackPlugin([{
|
||||
from: `src/i18n/`,
|
||||
to: `bundles/assets/ng2-alfresco-datatable/i18n/`
|
||||
}]),
|
||||
|
||||
new webpack.NoEmitOnErrorsPlugin(),
|
||||
|
||||
new webpack.BannerPlugin(fs.readFileSync(path.resolve(__dirname, './assets/license_header_add.txt'), 'utf8')),
|
||||
|
@@ -103,14 +103,7 @@ module.exports = {
|
||||
context: 'resources/i18n',
|
||||
from: '**/*.json',
|
||||
to: 'resources/i18n'
|
||||
},
|
||||
... alfrescoLibs.map(lib => {
|
||||
return {
|
||||
context: 'node_modules',
|
||||
from: `${lib}/src/i18n/*.json`,
|
||||
to: 'node_modules'
|
||||
}
|
||||
})
|
||||
}
|
||||
]),
|
||||
|
||||
new webpack.optimize.CommonsChunkPlugin({
|
||||
|
3
ng2-components/ng2-alfresco-datatable/src/i18n/en.json
Normal file
3
ng2-components/ng2-alfresco-datatable/src/i18n/en.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user