Last active
January 9, 2019 10:28
-
-
Save mazipan/1020c8494ba70f0564136fd3186eb798 to your computer and use it in GitHub Desktop.
Poi config for Vue-Ionicons project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require('path') | |
| const { GenerateSW } = require('workbox-webpack-plugin') | |
| const configWB = new GenerateSW({ | |
| swDest: 'sw.js' | |
| }) | |
| module.exports = { | |
| entry: 'demo/main.js', | |
| output: { | |
| dir: 'demo/dist', | |
| publicUrl: '/vue-ionicons/', | |
| }, | |
| configureWebpack(config) { | |
| config.plugins.push(configWB) | |
| return config | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment