mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Configuration } from 'webpack';
|
||||
import webpack, { Configuration } from 'webpack';
|
||||
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
||||
import SriPlugin from 'webpack-subresource-integrity';
|
||||
import path from 'path';
|
||||
@@ -46,9 +46,9 @@ const config: Configuration = {
|
||||
minify: true,
|
||||
template: path.join(__dirname, 'html.html'),
|
||||
}),
|
||||
new OfflinePlugin({
|
||||
...(__DEV__ ? [] : [new OfflinePlugin({
|
||||
events: true,
|
||||
}),
|
||||
})]),
|
||||
],
|
||||
module: {
|
||||
rules: [{
|
||||
|
||||
Reference in New Issue
Block a user