mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Add support for configurably including strings
* Add json-loader to load JSON files via webpack * Add a JSON file for string overrides * Add a getter method to BaseString for an easier and more clearly defined approach to accessing string values
This commit is contained in:
@@ -69,19 +69,27 @@ var baseConfig = function() {
|
||||
new webpack.optimize.CommonsChunkPlugin('vendor', 'tower.vendor.js')
|
||||
],
|
||||
module: {
|
||||
loaders: [{
|
||||
// disable AMD loading (broken in this lib) and default to CommonJS (not broken)
|
||||
test: /\.angular-tz-extensions.js$/,
|
||||
loader: 'imports?define=>false'
|
||||
}, {
|
||||
// es6 -> es5
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
exclude: /(node_modules)/,
|
||||
query: {
|
||||
presets: ['es2015']
|
||||
loaders: [
|
||||
{
|
||||
// disable AMD loading (broken in this lib) and default to CommonJS (not broken)
|
||||
test: /\.angular-tz-extensions.js$/,
|
||||
loader: 'imports?define=>false'
|
||||
},
|
||||
{
|
||||
// es6 -> es5
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
exclude: /(node_modules)/,
|
||||
query: {
|
||||
presets: ['es2015']
|
||||
}
|
||||
},
|
||||
{
|
||||
test: /\.json$/,
|
||||
loader: 'json-loader',
|
||||
exclude: /(node_modules)/
|
||||
}
|
||||
}]
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
||||
Reference in New Issue
Block a user