OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/webpack.config.js

51 lines
1.5 KiB

var webpack = require('webpack'),
path = require('path');
module.exports = {
context: __dirname + '/app/assets/javascripts/angular',
entry: './openproject-app.js',
output: {
filename: 'openproject-app.bundle.js',
path: path.join(__dirname, 'app', 'assets', 'javascripts')
},
module: {
loaders: [
{ test: /[\/]angular\.js$/, loader: "exports?angular" }
]
},
resolve: {
//root: [path.join(__dirname, 'vendor', 'assets', 'components')]
modulesDirectories: [
path.join(__dirname, 'node_modules'),
path.join(__dirname, 'vendor', 'assets', 'components')
],
alias: {
'angular-ui-date': 'angular-ui-date/src/date',
'angular-truncate': 'angular-truncate/src/truncate',
'angular-feature-flags': 'angular-feature-flags/dist/featureFlags.js',
'angular-busy': 'angular-busy/dist/angular-busy.js',
'angular-context-menu': 'angular-context-menu/dist/angular-context-menu.js',
'hyperagent': 'hyperagent/dist/hyperagent',
'openproject-ui_components': 'openproject-ui_components/app/assets/javascripts/angular/ui-components-app'
}
},
externals: { jquery: "jQuery" },
plugins: [
new webpack.ProvidePlugin({
'_': 'lodash',
'URI': 'URIjs',
'URITemplate': 'URIjs/src/URITemplate'
}),
new webpack.ResolverPlugin([
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin(
'bower.json', ['main'])
]) // ["normal", "loader"]
]
};