mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
30 lines
613 B
JavaScript
30 lines
613 B
JavaScript
const path = require('path');
|
|
const webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
mode: "development",
|
|
entry: './target/index.js',
|
|
output: {
|
|
path: path.resolve(__dirname, 'static/js/libs'),
|
|
filename: 'bundle.js',
|
|
clean: true,
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
// docs: https://webpack.js.org/configuration/module/#resolvefullyspecified
|
|
test: /\.m?js/,
|
|
resolve: {
|
|
fullySpecified: false,
|
|
}
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
// fix "process is not defined" error:
|
|
new webpack.ProvidePlugin({
|
|
process: 'process/browser',
|
|
}),
|
|
],
|
|
};
|