Skip to content

Instantly share code, notes, and snippets.

@gearmobile
Created June 26, 2017 19:20
Show Gist options
  • Save gearmobile/e1be3359a667eb1e555b2c461955e800 to your computer and use it in GitHub Desktop.
Save gearmobile/e1be3359a667eb1e555b2c461955e800 to your computer and use it in GitHub Desktop.
To use pug and stylus on the webpack template vue-cli
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>.
@navmed
Copy link

navmed commented Jul 4, 2018

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

@mcfarljw
Copy link

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