Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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