Skip to content

Commit

Permalink
added better documentation; removed bootstrap references
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Welch committed Jul 21, 2016
1 parent 4029e8b commit 2f6f679
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/bootstrap-public-path.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/NotFoundPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const NotFoundPage = () => {
return (
<div>
<h4>
404 Page Not Found <span className="glyphicon glyphicon-alert"></span>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* eslint-disable import/default */

import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack to load favicon.ico
import 'bootstrap/dist/css/bootstrap.css';
import './styles/styles.scss'; // Yep, that's right. You can import SASS/CSS files too! Webpack will run the associated loader and plug this into the page.
import { syncHistoryWithStore } from 'react-router-redux';

Expand Down
7 changes: 7 additions & 0 deletions src/webpack-public-path.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Created by welchk on 7/20/16.
*/
// below we dynamically set the webpack public path at runtime
// documentation: http://webpack.github.io/docs/configuration.html#output-publicpath
// eslint-disable-next-line no-undef
__webpack_public_path__ = window.location.protocol + "//" + window.location.host + "/";
3 changes: 2 additions & 1 deletion webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export default {
devtool: 'cheap-module-eval-source-map', // more info:https://webpack.github.io/docs/build-performance.html#sourcemaps and https://webpack.github.io/docs/configuration.html#devtool
noInfo: true, // set to false to see a list of every file being bundled.
entry: [
'./src/bootstrap-public-path',
// must be first entry to properly set public path
'./src/webpack-public-path',
'webpack-hot-middleware/client?reload=true',
'./src/index'
],
Expand Down

0 comments on commit 2f6f679

Please sign in to comment.