1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00
Files
sqliteviz/vue.config.js
2021-01-13 21:51:04 +01:00

27 lines
753 B
JavaScript

const CopyPlugin = require('copy-webpack-plugin')
module.exports = {
publicPath: '',
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: 'node_modules/sql.js/dist/worker.sql-wasm.js', to: 'js/' },
{ from: 'LICENSE', to: './' }
])
]
},
chainWebpack: config => {
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
.use('url-loader')
.loader('url-loader')
.options({
limit: 10000
})
}
}