This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
site/rollup.config.js
Maxim Slipenko 4b8e488517
All checks were successful
continuous-integration/drone/push Build is passing
добавляет rollup-plugin-workbox
2022-06-03 10:04:56 +03:00

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()
]
}