mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +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 = {
|
module.exports = {
|
||||||
webpack: {
|
webpack: {
|
||||||
|
context: __dirname,
|
||||||
cache: true,
|
cache: true,
|
||||||
entry: {
|
entry: {
|
||||||
app: pathutil.resource('app/app.js'),
|
app: pathutil.resource('app/app.js'),
|
||||||
|
@ -20,11 +21,13 @@ module.exports = {
|
||||||
colors: true
|
colors: true
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
root: [
|
||||||
|
pathutil.resource('app/components'),
|
||||||
|
],
|
||||||
modulesDirectories: [
|
modulesDirectories: [
|
||||||
pathutil.resource('app/components')
|
'web_modules',
|
||||||
, pathutil.resource('web_modules')
|
'bower_components',
|
||||||
, pathutil.resource('bower_components')
|
'node_modules',
|
||||||
, './node_modules'
|
|
||||||
],
|
],
|
||||||
alias: {
|
alias: {
|
||||||
'angular-bootstrap': 'angular-bootstrap/ui-bootstrap-tpls',
|
'angular-bootstrap': 'angular-bootstrap/ui-bootstrap-tpls',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue