|
|
@ -6,9 +6,11 @@ var phantom = require('./gulp/phantom');
|
|
|
|
var uglifyJsPlugin = new webpack.optimize.UglifyJsPlugin();
|
|
|
|
var uglifyJsPlugin = new webpack.optimize.UglifyJsPlugin();
|
|
|
|
|
|
|
|
|
|
|
|
var uiFolder = 'UI';
|
|
|
|
var uiFolder = 'UI';
|
|
|
|
|
|
|
|
var root = path.join(__dirname, 'src', uiFolder);
|
|
|
|
|
|
|
|
|
|
|
|
if (phantom) {
|
|
|
|
if (phantom) {
|
|
|
|
uiFolder = 'UI.Phantom';
|
|
|
|
uiFolder = 'UI.Phantom';
|
|
|
|
|
|
|
|
root = path.join(__dirname, uiFolder);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
module.exports = {
|
|
|
@ -17,7 +19,7 @@ module.exports = {
|
|
|
|
main: 'main.js'
|
|
|
|
main: 'main.js'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
resolve: {
|
|
|
|
root: path.join(__dirname, 'src', uiFolder),
|
|
|
|
root: root,
|
|
|
|
alias: {
|
|
|
|
alias: {
|
|
|
|
'vent': 'vent',
|
|
|
|
'vent': 'vent',
|
|
|
|
'backbone': 'Shims/backbone',
|
|
|
|
'backbone': 'Shims/backbone',
|
|
|
|