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,7 +1,6 @@
|
|||||||
import webpack, { Configuration } from 'webpack';
|
import webpack, { Configuration } from 'webpack';
|
||||||
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
||||||
import WorkboxWebpackPlugin from 'workbox-webpack-plugin';
|
import WorkboxWebpackPlugin from 'workbox-webpack-plugin';
|
||||||
import SriPlugin from 'webpack-subresource-integrity';
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
const data = require('./data.json');
|
const data = require('./data.json');
|
||||||
@@ -30,10 +29,6 @@ const config: Configuration = {
|
|||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
__DEV__: JSON.stringify(__DEV__),
|
__DEV__: JSON.stringify(__DEV__),
|
||||||
}),
|
}),
|
||||||
new SriPlugin({
|
|
||||||
hashFuncNames: ['sha256', 'sha384'],
|
|
||||||
enabled: !__DEV__,
|
|
||||||
}),
|
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
title: `Parcel for ${data.username}`,
|
title: `Parcel for ${data.username}`,
|
||||||
minify: true,
|
minify: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user