├── .idea ├── .name ├── vcs.xml ├── modules.xml ├── debugging-webpack.iml ├── runConfigurations │ └── index_html.xml └── misc.xml ├── greeting.js ├── webpack.config.js ├── main.js └── index.html /.idea/.name: -------------------------------------------------------------------------------- 1 | debugging-webpack -------------------------------------------------------------------------------- /greeting.js: -------------------------------------------------------------------------------- 1 | function addGreeting (a) { 2 | a.innerHTML = "Welcome to WebStorm"; 3 | } 4 | 5 | module.exports = addGreeting; -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | entry: "./main.js", 3 | output: { 4 | path: __dirname + "/build", 5 | filename: "bundle.js" 6 | }, 7 | devtool: "source-map" 8 | }; -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | var greeting = require("./greeting.js"); 2 | 3 | (function () { 4 | var welcomeBtn = document.getElementById("welcomeBtn"); 5 | var welcomeMsg = document.getElementById("welcomeMsg"); 6 | 7 | welcomeBtn.addEventListener('click', function(){ greeting(welcomeMsg)}); 8 | })(); 9 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |

Hello Webpack!

7 | 8 |
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/debugging-webpack.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/runConfigurations/index_html.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | CoffeeScript 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | --------------------------------------------------------------------------------