Skip to content

Commit

Permalink
refactor(index): only require index.html in dev mode
Browse files Browse the repository at this point in the history
Co-authored-by: JD Hartley <[email protected]>
  • Loading branch information
moklick and jdhartley authored Jun 14, 2020
1 parent 8ce7904 commit cf55103
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import '../styles/index.scss';
import '../index.html';
if (process.env.NODE_ENV === 'development') {
require('../index.html')
}

console.log('webpack starterkit');

0 comments on commit cf55103

Please sign in to comment.