mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +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:
parent
cecf08a244
commit
b519d604be
1 changed files with 7 additions and 4 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue