moebiusmania / vue-minimal

A minimal starter kit for Vue with Webpack, Babel, SASS & CSS Modules.

Home Page:https://moebiusmania.github.io/vue-minimal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why it is archived?

This repo was a "spin-off" of the React one to better understand the Vue framework.

It is archived for the same exact reasons.


vue-minimal

A minimal starter kit for Vue with Webpack, Babel, SASS & CSS Modules.

./logo.png

As the name says, this is another Vue starter kit created to give the minimum-viable-configuration to get started a new Vue based project with less dependencies and boilerplate as possible.

Developed mainly for me 😎 but open to everyone who may find this useful.

  • Vue
  • Webpack
    • HTML plugin
  • SASS & normalize.css
  • Styles loaded as CSS Modules
  • Babel, with the env preset
  • gh-pages (publish)

Get started

A few steps to quick-start a new project:

Clone the repo on a new folder

$ git clone https://github.com/moebiusmania/vue-minimal my-project

Change the name in the package.json, this will also affect the HTML title and the Webpack's notifications:

...
  "name": "my-project"
...

then

$ yarn

to install dependencies, and

$ yarn start

to start webserver on localhost:3000

Build & publish

To create deployable static files in the ./dist folder:

$ yarn build

to deploy the ./dist folder as a Github page:

$ yarn deploy

Styles

This starter kit supports both regular CSS and SASS, with a little difference in how they are managed:

  • .css files are loaded as style tag in the main document, this is great for global styles and precompiled libraries.
  • .scss files are loaded as CSS modules, this is a best fit for components.

Changelog

Check the releases page to get updated on what changed in the latest version.

License

Released under the MIT license.

About

A minimal starter kit for Vue with Webpack, Babel, SASS & CSS Modules.

https://moebiusmania.github.io/vue-minimal/

License:MIT License


Languages

Language:JavaScript 40.9%Language:Vue 36.0%Language:HTML 11.6%Language:SCSS 7.5%Language:CSS 3.9%