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:
gconsidine
2017-07-12 15:40:14 -04:00
parent 87101d18d2
commit 594c4d6ce2
5 changed files with 3766 additions and 13 deletions

View File

@@ -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: {