UNPKG

vbuild

Version:

Refined webpack development experience for Vue.js

22 lines (20 loc) 517 B
const path = require('path') // this will copy ./static/** to ./dist/** module.exports = (options, req) => ({ entry: 'src/index.js',<% if (electron) { %> dist: 'app/dist',<% } %> postcss: [ // add more postcss plugins here // by default we have autoprefixer pre added ], webpack(cfg) { cfg.resolve.modules.push(path.resolve('src')) <% if (electron) { %> if (!options.dev) { cfg.output.publicPath = './' } cfg.target = 'electron-renderer' <% } %> return cfg } })