1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 07:10:05 +02:00
copilot/frontend/webpack/paths.js
2017-01-03 17:11:18 +00:00

20 lines
530 B
JavaScript

const path = require('path');
const ROOT = path.join(__dirname, '../..');
const UI = path.join(ROOT, 'ui');
const FRONTEND = path.join(ROOT, 'frontend');
module.exports = {
ROOT,
MODULES: [
'node_modules',
path.join(FRONTEND, 'node_modules'),
path.join(UI, 'node_modules'),
],
FRONTEND: path.join(FRONTEND, 'src'),
UI: process.env.NODE_ENV === 'production'
? path.join(FRONTEND, 'node_modules', '@tomgco/joyent-portal-ui', 'dist')
: path.join(UI, 'src'),
STATIC: path.join(FRONTEND, 'static')
};