Skip to content
This repository has been archived by the owner on Dec 16, 2018. It is now read-only.

An opinionated Webpack + vue-loader setup for quick prototyping with Jade and Sass.

Notifications You must be signed in to change notification settings

heucke/webpack-opinionated

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

vue-webpack-opinionated-boilerplate

An opinionated Webpack setup for vue-loader for quick prototyping.

Usage

This is a project template for vue-cli. Includes support for Jade and Sass. This boilerplate also contains handy examples of child components, data binding, data passing, list rendering, and form binding for easy pickup of the Vue ecosystem.

$ npm install -g vue-cli
$ vue init theucke/webpack-opinionated my-project
$ cd my-project
$ npm install
$ npm run dev

What's Included

  • npm run dev: Webpack + vue-loader with proper config for source maps & hot-reload.

  • npm run build: Production build with HTML/CSS/JS minification.

For detailed explanation on how things work, consult the docs for vue-loader.

Adding Bootstrap

This template does not include any CSS frameworks. If you want to install your favorite version follow along with this example for Bootstrap4.

$ npm install bootstrap@4.0.0-alpha.2

In a new src/style/custom.scss, you can customize the default Bootstrap colors.

$color-primary: #42A4F5;
$color-secondary: #F7F7F9;

$brand-primary: $color-primary;
$body-bg: $color-secondary;

@import '~bootstrap/scss/bootstrap-flex';

Then in your main.js, require the file with require('./style/custom.scss').

Fork It And Make Your Own

You can fork this repo to create your own boilerplate, and use it with vue-cli:

vue init username/repo my-project

About

An opinionated Webpack + vue-loader setup for quick prototyping with Jade and Sass.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.1%
  • Vue 30.2%
  • HTML 11.3%
  • CSS 1.4%