mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
* Proof-of-concept pre-built custom sql.js * Rewrite Makefile as a couple of comprehensible Python scripts * Add link to a blog post about transitive closure in SQLite * Remove eval extension -- no much point as it only returns a string * Consistently use existing Path objects * Add basic tests scalar functions from extension-functions.c * Test presence of functions from the rest of built extensions * Use the same sqlite.com domain * Add a couple SQLite compile flags that may make it a bit faster * Add regexpi function test * Add node about regexpi and REGEXP operator * Workaround first build failure, rebuild lock file and minor fixes
45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
const CopyPlugin = require('copy-webpack-plugin')
|
|
const WorkboxPlugin = require('workbox-webpack-plugin')
|
|
|
|
module.exports = {
|
|
publicPath: '',
|
|
// Workaround for https://github.com/vuejs/vue-cli/issues/5399 as described
|
|
// in https://stackoverflow.com/a/63185174
|
|
lintOnSave: process.env.NODE_ENV === 'development',
|
|
configureWebpack: {
|
|
plugins: [
|
|
new CopyPlugin([
|
|
// This wasm file will be fetched dynamically when we initialize sql.js
|
|
// It is important that we do not change its name, and that it is in the same folder as the js
|
|
{ from: 'node_modules/sql.js/dist/sql-wasm.wasm', to: 'js/' },
|
|
{ from: 'LICENSE', to: './' }
|
|
]),
|
|
new WorkboxPlugin.GenerateSW({
|
|
exclude: [/\.map$/, 'LICENSE', 'queries.json'],
|
|
clientsClaim: true,
|
|
skipWaiting: false,
|
|
maximumFileSizeToCacheInBytes: 40000000
|
|
})
|
|
]
|
|
},
|
|
chainWebpack: config => {
|
|
const svgRule = config.module.rule('svg')
|
|
svgRule.uses.clear()
|
|
svgRule
|
|
.use('url-loader')
|
|
.loader('url-loader')
|
|
.options({
|
|
limit: 10000
|
|
})
|
|
|
|
config.module
|
|
.rule('worker')
|
|
.test(/worker\.js$/)
|
|
.use('worker-loader')
|
|
.loader('worker-loader')
|
|
.end()
|
|
|
|
config.module.rule('js').exclude.add(/worker\.js$/)
|
|
}
|
|
}
|