dustin-page / webpack-scp-demo

Webpack SplitChunksPlugin Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

js-plugin-starter

VanillaJS plugin starter with Webpack

Clone this repo

npx gclone thatisuday/js-plugin-starter [dir]

Use npx to use gclone on run-time or npm install -g gclone. This will copy this repository with .git directory. Remove .git directory because you might initialize your own git repository.

Instructions

  • npm install to install dependencies
  • npm i -D babel-plugin-react and npm i -S react react-dom to use React.js (also add entry react to .babelrc presets)
  • Execute command npm run start for running development server and preview
  • Execute command npm run build for creating distribution files
  • Tweak configuration inside config folder if necessary

About

Webpack SplitChunksPlugin Demo


Languages

Language:JavaScript 93.1%Language:CSS 3.6%Language:HTML 3.3%