In the middle of a big refactoring.

This commit is contained in:
Gunther Brunner
2014-02-14 20:17:23 +09:00
parent 1de3621b18
commit 61a7b9ded6
12 changed files with 92 additions and 51 deletions

View File

@@ -54,19 +54,27 @@ module.exports = function(options) {
resolve: {
modulesDirectories: [pathutil.resource('lib'), 'web_modules', './../../node_modules'],
alias: {
angular: 'angular/angular'
'socket.io': 'socket.io-client/dist/socket.io'
}
},
module: {
loaders: [
{ test: /\.css$/, loader: 'style!css' },
{ test: /\.coffee$/, loader: 'coffee' },
{ test: /angular\/angular/, loader: 'exports?angular'}
{ test: /angular\.js/, loader: 'exports?angular'},
{ test: /angular-route\.js/, loader: 'imports?angular=angular'}
],
noParse: [
pathutil.resource('lib')
]
}
},
plugins: [
new webpack.ResolverPlugin(
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('bower.json', ['main'])
),
new webpack.ResolverPlugin(
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('.bower.json', ['main'])
)
]
}), {
noInfo: false,
quiet: false,