Skip to content

Instantly share code, notes, and snippets.

@Sstobo
Created January 16, 2018 18:58
Show Gist options
  • Save Sstobo/6cde2887962f64ea3d3ec72b2b240f74 to your computer and use it in GitHub Desktop.
Save Sstobo/6cde2887962f64ea3d3ec72b2b240f74 to your computer and use it in GitHub Desktop.
TV = "state machine"
Remote control sends "actions"
-channel up / down
-power on ect
Webpack Installation
Install Webpack and its dependencies in your project:
npm install --save-dev babel-loader babel-core babel-preset-stage-0 webpack webpack-dev-server html-webpack-plugin
Add scripts to your package.json:
// ...
"scripts": {
"start": "webpack && webpack-dev-server",
"build": "webpack -p",
},
// ...
Also include a webpack.config.js file to your project root director too and add the provided snippet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment