UNPKG

@defra/wls-eps-api

Version:

The API to support the wildlife licencing of European Protected Species

43 lines (41 loc) 800 B
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const outputPath = path.resolve(__dirname, 'dist'); module.exports = { mode: 'production', entry: { app: { import: './src/index' }, }, resolve: { extensions: ['.ts', '.js'], }, module: { rules: [ { test: /\.yaml$/, use: [ { loader: 'json-loader' }, { loader: 'yaml-loader' } ] }, { test: /\.css$/, use: [ { loader: 'style-loader' }, { loader: 'css-loader' }, ] } ] }, plugins: [ new HtmlWebpackPlugin({ template: 'index.html', publicPath: 'openapi-ui' }) ], output: { filename: 'app.bundle.js', path: outputPath, clean: true } }