UNPKG

usql

Version:

Tiny, zero-dependency SQL query generator

29 lines (27 loc) 785 B
const path = require('path'); module.exports = { mode: process.env.NODE_ENV === 'development' ? 'development' : 'production', devtool: process.env.NODE_ENV === 'development' ? 'true' : 'false', entry: "./src/index.js", output: { // options related to how webpack emits results path: path.resolve(__dirname, "dist"), // string // the target directory for all output files // must be an absolute path (use the Node.js path module) filename: "index.js", // string // the url to the output directory resolved relative to the HTML page library: "usql", libraryTarget: 'umd' }, module: { rules: [ { test: /\.m?js$/, exclude: /node_modules/, use: { loader: 'babel-loader', } } ] } }