KS
Size: a a a
KS
AB
🧨
AB
AB
devServer: {
hot: true
}
KS
AB
🧨
AB
🧨
🧨
AB
import '../styles/index.scss';
?🧨
AB
AB
entry: {
app: Path.resolve(__dirname, '../src/scripts/index.js')
}
🧨
var App = require('./App')
var React = require('react')
var ReactDOM = require('react-dom')
// Render the root component normally
var rootEl = document.getElementById('root')
ReactDOM.render(<App />, rootEl)
// Are we in development mode?
if (module.hot) {
// Whenever a new version of App.js is available
module.hot.accept('./App', function () {
// Require the new version and render it instead
var NextApp = require('./App')
ReactDOM.render(<NextApp />, rootEl)
})
}
🧨
DS