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

36 lines
840 B

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')
]
},
externals: { jquery: "jQuery" },
plugins: [
new webpack.ResolverPlugin([
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin(
'bower.json', ['main'])
]) // ["normal", "loader"]
]
};