Skip to content

Instantly share code, notes, and snippets.

@egoist
Created February 21, 2017 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egoist/762d9c91f7bb01d7b812bad62632def2 to your computer and use it in GitHub Desktop.
Save egoist/762d9c91f7bb01d7b812bad62632def2 to your computer and use it in GitHub Desktop.
const Config = require('conpack')
const config = new Config()
module.exports = config
.entry('client')
.add('src/index.js')
.parent()
.entry('vendor')
.add(['vue', 'vuex'])
.parent()
.resolve(['.js', '.css'])
.loader('compile:js')
.rule(rule => ({
...rule,
test: /\.js$/,
rules: ['babel-loader']
})
.parent()
.value()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment