blob: 3a20e66497dafc7865e6ce29ae438f3132a5c6e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright 2022 The RE2 Authors. All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import nodeResolve from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';
import html from '@web/rollup-plugin-html';
import {importMetaAssets} from '@web/rollup-plugin-import-meta-assets';
export default {
input: 'index.html',
output: {
entryFileNames: '[hash].js',
chunkFileNames: '[hash].js',
assetFileNames: '[hash][extname]',
format: 'es',
},
preserveEntrySignatures: false,
plugins:
[
html({
minify: true,
}),
nodeResolve(),
terser(),
importMetaAssets(),
],
};
|