Skip to content

Instantly share code, notes, and snippets.

View kasterra's full-sized avatar
🀄
Tenpai!

Huichan Lee kasterra

🀄
Tenpai!
View GitHub Profile
@kasterra
kasterra / webpack.prod.js
Last active October 11, 2022 11:37
Lit로 돌아가는 SPA의 webpack.prod.js 웹팩 설정(배포용)
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
module.exports = {
mode: 'production',
entry: {
bundle: './src/client/index.ts',
elements: './src/client/global/allComponents.ts',
},
output: {
@kasterra
kasterra / webpack.dev.js
Last active October 11, 2022 11:37
Lit로 돌아가는 SPA의 webpack.dev.js 웹팩 설정(개발용)
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
module.exports = {
mode: 'development',
entry: {
bundle: './src/client/index.ts',
elements: './src/client/global/allComponents.ts',
},
output: {
filename: '[name].js',
@kasterra
kasterra / test.js
Created August 9, 2022 09:21
MultiBar test from cli-progress npm module
import { MultiBar } from "cli-progress";
const files = {
"eta.js ": 187,
"generic-bar.js": 589,
"multi-bar.js ": 5342,
"options.js ": 42,
"single-bar.js ": 2123,
"terminal.js ": 4123,
};
@kasterra
kasterra / test.js
Created August 9, 2022 09:20
singleProgressBarTest
import { SingleBar } from "cli-progress";
// create new progress bar
const b1 = new SingleBar({
format:
"CLI Progress {name}|" +
"{bar}" +
"| {percentage}% || {value}/{total} Chunks",
barCompleteChar: "\u2588",
barIncompleteChar: "\u2591",