Introduction to Lit JavaScript Library With Rollup | by Zafar Saleem | Mar, 2022

Lit Library with a real-world instance

Lightbulb
Photograph by Terry Vlisidis on Unsplash
cd lit-contacts
npm i @net/dev-server --save-dev
npm init -y
"scripts": 
"dev": "web-dev-server"
,
export default 
open: true,
watch: true,
appIndex: 'index.html',
nodeResolve:
exportConditions: ['development'],
,
esbuildTarget: 'auto',
;
npm i --save-dev rollup @net/rollup-plugin-html @net/rollup-plugin-copy @rollup/plugin-node-resolve rollup-plugin-terser rollup-plugin-minify-html-literals rollup-plugin-summary
"scripts": 
"dev": "web-dev-server",
"construct": "rollup -c"
npm set up eslint --save-dev
npx eslint --init
"scripts": 
"dev": "yarn lint && web-dev-server",
"construct": "rollup -c",
"lint": "eslint "./src/**/*.js,ts""
,
yarn dev
Wish to Join?If you want to get in contact with me, join with me and comply with me on the next social media accounts:Linkedin | Github | Gitlab | Instagram | Website

More Posts