mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-22 22:58:33 +00:00
Co-authored-by: Ronan Jouchet <ronan@jouchet.fr>
This commit is contained in:
parent
e58823985a
commit
14d95da079
@ -16,7 +16,11 @@ module.exports = {
|
||||
],
|
||||
rules: {
|
||||
'no-console': 'error',
|
||||
'prettier/prettier': 'error',
|
||||
'prettier/prettier': [
|
||||
'error', {
|
||||
'endOfLine': 'auto'
|
||||
}
|
||||
],
|
||||
// TODO remove when done killing `any`s and making tsc strict
|
||||
'@typescript-eslint/ban-ts-comment': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
|
@ -11,7 +11,19 @@ import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
|
||||
import { ipcRenderer } from 'electron';
|
||||
import * as log from 'loglevel';
|
||||
|
||||
// Do *NOT* add 3rd-party imports here in preload (except for webpack `externals` like electron).
|
||||
// They will work during development, but break in the prod build :-/ .
|
||||
// Electron doc isn't explicit about that, so maybe *we*'re doing something wrong.
|
||||
// At any rate, that's what we have now. If you want an import here, go ahead, but
|
||||
// verify that apps built with a non-devbuild nativefier (installed from tarball) work.
|
||||
// Recipe to monkey around this, assuming you git-cloned nativefier in /opt/nativefier/ :
|
||||
// cd /opt/nativefier/ && rm -f nativefier-43.1.0.tgz && npm run build && npm pack && mkdir -p ~/n4310/ && cd ~/n4310/ \
|
||||
// && rm -rf ./* && npm i /opt/nativefier/nativefier-43.1.0.tgz && ./node_modules/.bin/nativefier 'google.com'
|
||||
// See https://github.com/nativefier/nativefier/issues/1175
|
||||
// and https://www.electronjs.org/docs/api/browser-window#new-browserwindowoptions / preload
|
||||
|
||||
const log = console; // since we can't have `loglevel` here in preload
|
||||
|
||||
export const INJECT_DIR = path.join(__dirname, '..', 'inject');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user