Skip to content

It's a production ready NPM+Webpack _automation_ and _module bundler_ focused in _multipage_ Bootstrap 4 and Fontawsome static web pages. It supports ES6 Syntax, SCSS to css comiling, Automatic bundling of css/js and images and multiple html files each with separate set of assets.

License

Notifications You must be signed in to change notification settings

Juni4567/gulp-to-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Switching from Gulp to Webpack - Front-end Workflow

PRs Welcome

What is it?

It's a production ready NPM+Webpack automation and module bundler focused in multipage Bootstrap 4 and Fontawsome static web pages. It supports ES6 Syntax, SCSS to css comiling, Automatic bundling of css/js and images and multiple html files each with separate set of assets.

Who is this for?

The main target audience for this project are Designers and Frontend Developers, but people trying to figure out Webpack can also benefit from reading the config files. Specially those who want to update their existing workflow from gulp or grunt and want to use latest features of javascript plus webpack. This is also a good start for those who are doing PSD to HTML.

Features

  1. Support for each page to load only the resources required by that page e.g. css, images and js resources (css and js minified)
  2. Supports ES6 features and transpiles js to browser understandable js
  3. Converts images that are less than 8kb to base64 and embeds them directly in the html instead of putting them in the images folder.

Why does this exists?

Most of the boilerplates available out there are kind of minimal --- for education purposes --- or SPA driven --- useful when dealing with desktop/mobile applications, web apps, promotional/landing pages, utility pages etc ---, but Internet is a very diverse environment where some kinds of software should be designed as MPAs which are good at crawlability (SEO), security, speed, cacheability, extensibility etc.

How to use it?

With git and node.js already installed, it's very straight forward. Just run:

$ git clone https://github.com/Juni4567/gulp-to-webpack.git
$ cd gulp-to-webpack
$ npm install  or yarn

This will ensure your environment get automaticaly configured. From here, you can start coding. When you are done, run:

$ npm run build or yarn build

This will update the files under ./dist/ folder.

How to add more files?

  1. Create the html file "someFile.html" in the src folder
  2. create the scss file in the same name "someFile.scss" in the src/scss folder
  3. create the same named file "someFile.js" in the src/js folder
  4. update webpack.config.js file configurations. -- add entry point to the end of the entry object
someFile: './src/js/someFile.js',

-- add the html template to the plugins array

What's missing?

-- Auto reload or hot module replacement plugin and a dev server

Contributing

Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub.

About

It's a production ready NPM+Webpack _automation_ and _module bundler_ focused in _multipage_ Bootstrap 4 and Fontawsome static web pages. It supports ES6 Syntax, SCSS to css comiling, Automatic bundling of css/js and images and multiple html files each with separate set of assets.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published