Skip to content

Commit

Permalink
Remove unnecessary client JS
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Nov 18, 2015
1 parent d1b7103 commit 20f564d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -34,7 +34,7 @@
"postcss-loader": "^0.4.3",
"raw-loader": "^0.5.1",
"react": "^0.13.3",
"react-to-html-webpack-plugin": "^2.1.0",
"react-to-html-webpack-plugin": "^2.2.0",
"style-loader": "^0.12.3",
"url-loader": "^0.5.6",
"webpack": "^1.9.10",
Expand Down
4 changes: 0 additions & 4 deletions src/index.js
Expand Up @@ -2,8 +2,4 @@ import React from 'react';

import App from './components/App';

if (typeof document !== 'undefined') {
React.render(<App />, document.getElementById('outlet'));
}

export default App;
3 changes: 0 additions & 3 deletions src/template.ejs
Expand Up @@ -8,8 +8,5 @@
<div id="outlet">
<%- html %>
</div>
<% for (var chunk in assets) { -%>
<script src="<%= assets[chunk] %>"></script>
<% } -%>
</body>
</html>
1 change: 1 addition & 0 deletions webpack.config.js
Expand Up @@ -35,6 +35,7 @@ module.exports = {
plugins: [
new ExtractTextPlugin('style.css', { allChunks: true }),
new ReactToHtmlPlugin('index.html', 'index.js', {
static: true,
template: ejs.compile(fs.readFileSync(__dirname + '/src/template.ejs', 'utf-8'))
})
]
Expand Down

0 comments on commit 20f564d

Please sign in to comment.