2021-03-02 01:10:13 -08:00
|
|
|
var webpack = require('webpack');
|
|
|
|
var libraryName = 'pawsqlite-websql-adapter';
|
|
|
|
var outputFile = libraryName + '.js';
|
|
|
|
|
|
|
|
var config = {
|
|
|
|
mode: 'development',
|
|
|
|
entry: __dirname + '/src/websql_adapter.mjs',
|
|
|
|
devtool: 'source-map',
|
|
|
|
output: {
|
|
|
|
path: __dirname + '/lib',
|
|
|
|
filename: outputFile,
|
|
|
|
libraryExport: 'default',
|
|
|
|
libraryTarget: 'commonjs2',
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2021-03-02 18:09:39 -08:00
|
|
|
module.exports = config;
|