srt-validator
Version:
<div align="center"> <img width="200" height="200" src="https://user-images.githubusercontent.com/8691648/149093190-2f610184-e96c-4f8f-b423-d9afee704c1d.png"> </div>
34 lines (32 loc) • 703 B
JavaScript
const path = require('path');
module.exports = {
entry: './src/index.js',
mode: 'production',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'srtValidator.js',
library: 'srtValidator',
libraryTarget: 'umd',
globalObject: 'this',
},
resolve: {
alias: {
'srt-validator': path.resolve(__dirname, 'src'),
},
},
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: [['@babel/preset-env', { modules: 'umd' }]],
plugins: ['add-module-exports'],
},
},
},
],
},
};