fix: use not minified tiddlywiki

This commit is contained in:
林一二 2021-06-02 13:20:24 +08:00
parent 85911204f3
commit 55546ea109
3 changed files with 4 additions and 6 deletions

View file

@ -24,10 +24,10 @@
"packagerConfig": {
"icon": "build-resources/icon.icns",
"asar": {
"unpack": "{**/.webpack/main/*.worker.*,**/node_modules/@tiddlygit/tiddlywiki/**/*}"
"unpack": "**/.webpack/main/*.worker.*"
},
"extraResource": [
".webpack/main/node_modules",
"node_modules/@tiddlygit/tiddlywiki",
"localization",
"template/wiki",
"build-resources/menubar@2x.png",

View file

@ -35,6 +35,7 @@ module.exports = {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.json'],
},
externals: [
// TODO: simply external things will make require can't find things. May need some other way.
// nodeExternals({
// additionalModuleDirs: ['@tiddlygit/tiddlywiki'],
// allowlist: [/(threads-plugin)/],

View file

@ -14,10 +14,7 @@ exports.main = [
new ForkTsCheckerWebpackPlugin(),
new CopyPlugin({
// to is relative to ./.webpack/main/
patterns: [
{ from: 'localization', to: 'localization' },
{ from: 'node_modules/@tiddlygit/tiddlywiki', to: 'node_modules/@tiddlygit/tiddlywiki' },
],
patterns: [{ from: 'localization', to: 'localization' }],
}),
new CircularDependencyPlugin({
// exclude detection of files based on a RegExp