We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daa2bec commit a84523bCopy full SHA for a84523b
src/containers/App.js
@@ -24,6 +24,9 @@ export default class App extends Component {
24
componentDidMount() {
25
window.addEventListener('keydown', this.handleKeyDown);
26
}
27
+ componentWillUnmount() {
28
+ window.removeEventListener('keydown', this.handleKeyDown);
29
+ }
30
31
handleKeyDown(e) {
32
const { currentSlide, nextSlide, prevSlide } = this.props;
webpack.config.js
@@ -11,7 +11,7 @@ module.exports = {
11
output: {
12
path: path.join(__dirname, 'build'),
13
filename: 'bundle.js',
14
- publicPath: '/bundle'
+ publicPath: '/build'
15
},
16
plugins: [
17
new webpack.HotModuleReplacementPlugin(),
0 commit comments