Skip to content

Instantly share code, notes, and snippets.

View 3dln's full-sized avatar
🌞
blessed

Ashcan Ashtin 3dln

🌞
blessed
View GitHub Profile
@3dln
3dln / app.js
Created October 14, 2020 07:29
virgool - webpack tutorial 4-1
import _ from 'lodash';
import './style.css';
function component() {
const element = document.createElement('div');
element.innerHTML = _.join(['Hello', 'webpack'], ' ');
element.classList.add('hello');
@3dln
3dln / webpack.config.js
Created October 14, 2020 07:50
virgool - webpack tutorial - 4-2
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
module: {
rules: [],
@3dln
3dln / webpack.config.js
Last active October 14, 2020 08:18
virgool webpack tutorial - 4-3
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
module: {
rules: [
{
@3dln
3dln / app.js
Last active October 16, 2020 08:39
virgool webpack tutorial
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;