fxied
This commit is contained in:
@@ -9,7 +9,7 @@ export interface Entries {
|
||||
content: string[];
|
||||
background: string[];
|
||||
popup: string[];
|
||||
myCalendar: string[];
|
||||
my_calendar: string[];
|
||||
// only used in development
|
||||
debug?: string[];
|
||||
}
|
||||
@@ -29,12 +29,12 @@ export default function config(mode: Environment, manifest: chrome.runtime.Manif
|
||||
const entry: Entries = {
|
||||
content: [path.resolve('src', 'views')],
|
||||
popup: [path.resolve('src', 'views')],
|
||||
myCalendar: [path.resolve('src', 'views')],
|
||||
my_calendar: [path.resolve('src', 'views')],
|
||||
background: [path.resolve('src', 'background', 'background')],
|
||||
};
|
||||
|
||||
// the entries that need an html file to be generated
|
||||
const htmlEntries: EntryId[] = ['popup', 'myCalendar'];
|
||||
const htmlEntries: EntryId[] = ['popup', 'my_calendar'];
|
||||
|
||||
if (mode === 'development') {
|
||||
// create an html file for the debug entry
|
||||
@@ -45,7 +45,7 @@ export default function config(mode: Environment, manifest: chrome.runtime.Manif
|
||||
// we need to import react-devtools before the react code in development so that it can hook into react
|
||||
entry.content = [path.resolve('src', 'debug', 'reactDevtools'), ...entry.content];
|
||||
entry.popup = [path.resolve('src', 'debug', 'reactDevtools'), ...entry.popup];
|
||||
entry.myCalendar = [path.resolve('src', 'debug', 'reactDevtools'), ...entry.myCalendar];
|
||||
entry.my_calendar = [path.resolve('src', 'debug', 'reactDevtools'), ...entry.my_calendar];
|
||||
}
|
||||
|
||||
/** @see https://webpack.js.org/configuration for documentation */
|
||||
|
||||
Reference in New Issue
Block a user