tauri/tooling/cli/templates/plugin/with-api/webview-src/rollup.config.js
Lucas Fernandes Nogueira 4334865266
refactor(cli): rename tooling/cli.rs folder to tooling/cli (#3388)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2022-02-10 17:23:10 -03:00

22 lines
477 B
JavaScript

import { nodeResolve } from '@rollup/plugin-node-resolve'
import { terser } from 'rollup-plugin-terser'
import typescript from '@rollup/plugin-typescript'
export default {
input: './webview-src/index.ts',
output: {
dir: './webview-dist',
entryFileNames: '[name].js',
format: 'es',
exports: 'auto'
},
plugins: [
nodeResolve(),
terser(),
typescript({
tsconfig: './webview-src/tsconfig.json',
moduleResolution: 'node'
})
]
}