mirror of
https://github.com/ducbao414/win32.run.git
synced 2025-12-16 17:22:51 +09:00
19 lines
454 B
JavaScript
19 lines
454 B
JavaScript
import copy from 'rollup-plugin-copy-assets';
|
|
import { terser } from "rollup-plugin-terser";
|
|
|
|
export default {
|
|
input: 'src/webworker/worker.js',
|
|
output: [
|
|
{
|
|
file: 'dist/worker-bundle.js',
|
|
format: 'iife'
|
|
}
|
|
],
|
|
plugins: [
|
|
copy({
|
|
assets: [
|
|
'./src/webworker/wasm-gen'
|
|
],
|
|
}),
|
|
].concat( process.env.BUILD === 'production' ? [terser()] : [] ),
|
|
}; |