This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import _ from 'lodash'; | |
| import './style.css'; | |
| function component() { | |
| const element = document.createElement('div'); | |
| element.innerHTML = _.join(['Hello', 'webpack'], ' '); | |
| element.classList.add('hello'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| module.exports = { | |
| entry: './src/index.js', | |
| output: { | |
| filename: 'bundle.js', | |
| path: path.resolve(__dirname, 'dist'), | |
| }, | |
| module: { | |
| rules: [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path'); | |
| module.exports = { | |
| entry: './src/index.js', | |
| output: { | |
| filename: 'bundle.js', | |
| path: path.resolve(__dirname, 'dist'), | |
| }, | |
| module: { | |
| rules: [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import _ from 'lodash'; | |
| import './style.css'; | |
| import Logo from './icon.png'; | |
| function component() { | |
| const element = document.createElement('div'); | |
| element.innerHTML = _.join(['Hello', 'webpack'], ' '); | |
| element.classList.add('hello'); | |
| const logo = new Image(); | |
| logo.src = Logo; |
OlderNewer