1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 09:49:17 +02:00

Fix module paths in webpack config and provide context so that it won't have any trouble finding them if run from a different directory.

This commit is contained in:
Simo Kinnunen 2014-10-15 12:36:53 +09:00
parent cecf08a244
commit b519d604be

View file

@ -4,6 +4,7 @@ var CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin')
module.exports = {
webpack: {
context: __dirname,
cache: true,
entry: {
app: pathutil.resource('app/app.js'),
@ -20,11 +21,13 @@ module.exports = {
colors: true
},
resolve: {
root: [
pathutil.resource('app/components'),
],
modulesDirectories: [
pathutil.resource('app/components')
, pathutil.resource('web_modules')
, pathutil.resource('bower_components')
, './node_modules'
'web_modules',
'bower_components',
'node_modules',
],
alias: {
'angular-bootstrap': 'angular-bootstrap/ui-bootstrap-tpls',