[webpack] ch9. Resolve Modules 실습

Resolve Modules 실습

Webpack Plugins

- app/index.js 생성
```javascript
// 세가지 실습 예정
// #1 - Using NPM
// #2 - Using alias
// #3 - Using Provide Plugin

module.exports = { entry: ‘./app/index.js’, output: { filename: ‘bundle.js’, path: path.resolve(__dirname, ‘dist’) } };


## Using NPM
- app/index.js
```javascript
// #1 - Using NPM
var $ = require('jquery');
console.log("loaded jQuery version is " + $.fn.jquery);

Using Alias

Using Provide Plugin