1.0.5 • Published 8 years ago

webpack-config-vue v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

webpack-config-vue build status

Reusable Webpack config for Vue.js

Install

You should install webpack-config-babel6 first.

$ npm install --save-dev webpack-config-vue

Example

In your webpack.config.js:

const babel = require('webpack-config-babel6')
const vue = require('webpack-config-vue')

let config = {
  entry: './main.js',
  output: {
    path: __dirname + '/build',
    filename: 'bundle.js'
  }
}

config = babel(config)
config = vue(config)

// apply postcss plugins
config.vue.postcss = [
  require('precss')
]

module.exports = config

License

MIT © EGOIST