Maxim Slipenko
4b8e488517
All checks were successful
continuous-integration/drone/push Build is passing
19 lines
396 B
JavaScript
19 lines
396 B
JavaScript
import resolve from '@rollup/plugin-node-resolve'
|
|
import { terser } from 'rollup-plugin-terser'
|
|
import { injectManifest } from 'rollup-plugin-workbox'
|
|
|
|
const workboxConfig = require('./workbox-config')
|
|
|
|
export default {
|
|
input: 'src/js/index.js',
|
|
output: {
|
|
file: 'dist/js/bundle.js',
|
|
format: 'esm'
|
|
},
|
|
plugins: [
|
|
injectManifest(workboxConfig),
|
|
resolve(),
|
|
terser()
|
|
]
|
|
}
|