0.4.0 • Published 7 years ago

pue-loader v0.4.0

Weekly downloads
8
License
WTFPL
Repository
github
Last release
7 years ago

pue-loader

Build Status npm vue npm.io

🐍 A more pythonic javascript for Vue component file. (Pug + CoffeeScript + Stylus)

Usage

Create a app.pue file

template
  div
    span {{ count }}
    button(@click="count++") +
    button(@click="count--") -

script
  export default {
    name: 'compo'
    data: () ->
      count: 0
  }

style(scoped="scoped")
  span
    color red

Installation

npm i pue-loader css-loader vue-loader -D

webpack config

modules.export = {
  module: {
    rules: [
      {
        test: /\.pue$/,
        loader: 'pue-loader'
      }
    ]
  }
}

Syntax highlight

License

WTFPL