Skip to content

Commit

Permalink
Add src/ to webpack's resolve so we can avoid nasty relative imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfly committed Sep 7, 2017
1 parent 46eb7ce commit 6dbced3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tnoodle-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"react-scripts": "0.9.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
"start": "NODE_PATH=src react-scripts start",
"build": "NODE_PATH=src react-scripts build",
"test": "NODE_PATH=src react-scripts test --env=jsdom",
"eject": "NODE_PATH=src react-scripts eject"
}
}
4 changes: 2 additions & 2 deletions tnoodle-ui/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import logo from 'logo.svg';
import 'App.css';

class App extends Component {
render() {
Expand Down

0 comments on commit 6dbced3

Please sign in to comment.