PawSQLite/webpack.config.js
2021-03-01 18:47:07 -08:00

19 lines
399 B
JavaScript

var webpack = require('webpack');
var libraryName = 'PawSQLite';
var outputFile = libraryName + '.js';
var config = {
mode: 'development',
entry: __dirname + '/src/pawsqlite.mjs',
devtool: 'source-map',
output: {
path: __dirname + '/lib',
filename: outputFile,
library: libraryName,
libraryExport: 'default',
libraryTarget: 'commonjs2',
}
};
module.exports = config;