|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
var webpack = require('webpack'), |
|
|
|
|
path = require('path'); |
|
|
|
|
path = require('path'), |
|
|
|
|
pathConfig = require('./config/rails-plugins.conf'); |
|
|
|
|
|
|
|
|
|
module.exports = { |
|
|
|
|
context: __dirname + '/app/assets/javascripts/angular', |
|
|
|
@ -15,7 +16,7 @@ module.exports = { |
|
|
|
|
loaders: [ |
|
|
|
|
{ test: /[\/]angular\.js$/, loader: "exports?angular" }, |
|
|
|
|
{ test: /[\/]vendor[\/]i18n\.js$/, loader: "expose?I18n" }, |
|
|
|
|
{ test: /js-\w{2}\.yml$/, loader: 'json!yaml' }, |
|
|
|
|
{ test: /js-[\w|-]{2,5}\.yml$/, loader: 'json!yaml' } |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -29,6 +30,7 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
alias: { |
|
|
|
|
'locales': 'config/locales', |
|
|
|
|
'extra-locales': path.join(pathConfig.translationsPluginPath, 'config', 'locales'), |
|
|
|
|
|
|
|
|
|
'angular-ui-date': 'angular-ui-date/src/date', |
|
|
|
|
'angular-truncate': 'angular-truncate/src/truncate', |
|
|
|
@ -40,6 +42,10 @@ module.exports = { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
resolveLoader: { |
|
|
|
|
root: __dirname + '/node_modules' |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
externals: { jquery: "jQuery" }, |
|
|
|
|
|
|
|
|
|
plugins: [ |
|
|
|
|