Skip to content

jyoung4242/webpackBootstrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Twitter URL

Simple Batch File that bootstraps a webpack project, either JS or TS OR NOW REACT!!!!

Screenshot

πŸ‘‹ Introducing WebpackBootstrapper

WebpackBootstrapper is an simple .BAT file to create a preconfigured, webpack framework so you don't have to worry about simple bundling....

Demo on Youtube

πŸ”₯ Features

WebpackBootstrapper comes with a bundle of features already. You can do the followings with it,

πŸ”’ Basic project bundling

  • Allows for JS or TS or React file bundling to a template.html file

πŸ—οΈ Import images

  • Allows for images to be imported as assets
import koala from './assets/koala.png'

πŸ“’ Allows for bundling of CSS too

import './styles.css'

πŸ’˜ HTML template

  • Don't even need to create your HTML template, its included
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>Hello World</title>
    </head>
    <body></body>
</html>

or for React projects

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>Hello World</title>
    </head>
    <body>
        <div id="app"></div>
    </body>
</html>

✨ Builds to Javascript or TypeScript or React project

  • Prompts user for a 'J' or a 'T' OR 'R' NOW!!!! at the beginning, and does all the rest for you!!!!
  • Creates default webpack.config.js, package.json, and tsconfig.json files for you!
  • Builds src and build folder structure, so YOU DON'T HAVE TO YEAH!!!!

πŸ” no NPM mining

  • all the NPM dev dependencies are automated
  • including:
  • css-loader, ts-loader, html-webpack-plugin, json, dev-server, cli tools... etc

Getting Started!!!!

  1. Download .bat file from repo

  2. Create new project directory and navigate to it in vscode (or your IDE of choice)

  3. Place BAT file into new project directory

  4. run the bat file... this can be done out of vscode

./webpackstarter.bat
  1. Answer the prompt, T or J or R (for react)
  2. go get a coffee, process takes about 90 seconds
  3. Run dev server or build (automatically launches now and opens browser)
npm run start

or

npm run build