mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-10 01:08:23 +01:00
31 lines
807 B
TypeScript
31 lines
807 B
TypeScript
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
import path from 'path';
|
|
import webpack from 'webpack';
|
|
import merge from 'webpack-merge';
|
|
|
|
import { config as baseConfig } from './base.webpack.config';
|
|
|
|
const DIST = path.resolve(__dirname, '../build');
|
|
|
|
const config: webpack.Configuration = {
|
|
entry: {
|
|
iframe: path.resolve(__dirname, '../src/index.ts'),
|
|
},
|
|
output: {
|
|
filename: 'js/[name].[contenthash].js',
|
|
path: DIST,
|
|
publicPath: './',
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
chunks: ['iframe'],
|
|
filename: 'iframe.html',
|
|
template: path.resolve(__dirname, '../src/static/iframe.html'),
|
|
minify: false,
|
|
inject: false,
|
|
}),
|
|
],
|
|
};
|
|
|
|
export default merge([config, baseConfig]);
|