Get graduate working

This commit is contained in:
Dan Abramov
2016-07-17 13:46:12 +01:00
committed by Christopher Chedeau
parent 4b4a8a155d
commit 2987cc69b9
6 changed files with 61 additions and 19 deletions

View File

@@ -12,7 +12,9 @@ var autoprefixer = require('autoprefixer');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var relative = process.argv[2] === 'local' ? '.' : '../..';
var isInNodeModules = 'node_modules' ===
path.basename(path.resolve(path.join(__dirname, '..')));
var relative = isInNodeModules ? '../..' : '.';
module.exports = {
devtool: 'eval',