mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-12 03:45:58 +08:00
Get graduate working
This commit is contained in:
committed by
Christopher Chedeau
parent
4b4a8a155d
commit
2987cc69b9
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user