Initial import of LogDarioSeq baseline
Establishes version control for the personal Logseq DB fork before starting the server-client architecture migration and domain features described in docs/agent-guide and the approved implementation plan. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
59
webpack.config.js
Normal file
59
webpack.config.js
Normal file
@@ -0,0 +1,59 @@
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
|
||||
var config = {
|
||||
mode: "development",
|
||||
externals: {
|
||||
'react': 'React',
|
||||
'react-dom': 'ReactDOM',
|
||||
},
|
||||
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',
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
var AppConfig = Object.assign({}, config, {
|
||||
name: "app",
|
||||
entry: {
|
||||
"db-worker" : "./target/db-worker.js"
|
||||
},
|
||||
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'static/js'),
|
||||
filename: '[name]-bundle.js',
|
||||
clean: false,
|
||||
chunkLoading: false,
|
||||
},
|
||||
});
|
||||
|
||||
var MobileConfig = Object.assign({}, config, {
|
||||
name: "mobile",
|
||||
entry: {
|
||||
"db-worker" : "./target/db-worker.js",
|
||||
},
|
||||
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'static/mobile/js'),
|
||||
filename: '[name]-bundle.js',
|
||||
clean: false,
|
||||
chunkLoading: false,
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = [
|
||||
AppConfig, MobileConfig,
|
||||
];
|
||||
Reference in New Issue
Block a user