Created
June 26, 2017 19:20
-
-
Save gearmobile/e1be3359a667eb1e555b2c461955e800 to your computer and use it in GitHub Desktop.
To use pug and stylus on the webpack template vue-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To use pug and stylus on the webpack template vue-cli provides, simply run | |
npm i --save-dev pug pug-loader stylus stylus-loader | |
Then add the attributes to the .vue root tags, eg: | |
<template lang="pug"></template> | |
<style lang="stylus"></style>. |
You shouldn't need to install pug-loader
, but will need the others.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I also had to add pug-plain-loader, so my line is
npm i --save-dev pug pug-loader pug-plain-loader stylus stylus-loader