mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-27 10:32:58 +02:00
30 lines
485 B
JavaScript
30 lines
485 B
JavaScript
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: {
|
||
|
main: './miniViewer.tsx',
|
||
|
'pdf.worker': 'pdfjs-dist/build/pdf.worker.entry',
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.tsx?$/,
|
||
|
use: 'ts-loader',
|
||
|
exclude: /node_modules/,
|
||
|
},
|
||
|
{
|
||
|
test: /\.css$/i,
|
||
|
use: ['style-loader', 'css-loader'],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['.tsx', '.ts', '.js'],
|
||
|
},
|
||
|
output: {
|
||
|
filename: '[name].js',
|
||
|
path: path.resolve(__dirname, 'dist'),
|
||
|
clean: true,
|
||
|
},
|
||
|
};
|