mirror of
https://github.com/ansible/awx.git
synced 2026-01-28 00:51:27 -03:30
Manual initialization allows for some asynchronous work to finish ahead of Angular's startup. The initial motivation is to be able to guarantee translation files have been fetched before rendering content that needs translation. If a locale isn't supported or if the request to get a json file fails, the i18n service falls back to en. Signed-off-by: gconsidine <gconsidi@redhat.com>
21 lines
403 B
JavaScript
21 lines
403 B
JavaScript
const _ = require('lodash');
|
|
const webpack = require('webpack');
|
|
|
|
const STATIC_URL = '/static/';
|
|
|
|
const development = require('./webpack.base');
|
|
|
|
const test = {
|
|
devtool: 'cheap-source-map',
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
$basePath: STATIC_URL
|
|
})
|
|
]
|
|
};
|
|
|
|
test.plugins = development.plugins.concat(test.plugins);
|
|
|
|
module.exports = _.merge(development, test);
|
|
|