Skip to content

Commit

Permalink
Fix failing create test
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Sep 6, 2024
1 parent e894f78 commit c970b9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const JS_TEMPLATES: Template[] = [
name: 'config-stylelint',
uiContext: ['newTab'],
uiFramework: undefined,
css: 'css',
css: 'sass',
hasBackground: false,
hasEnv: false,
configFiles: ['stylelint.config.json']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export class UpdateManifest {
) {
if (!overrides.content_scripts) return {}

console.log('reach1')
return overrides.content_scripts.map(
(contentObj: {js: string[]; css: string[]}, index: number) => {
if (contentObj.js.length && !contentObj.css.length) {
Expand Down Expand Up @@ -99,8 +98,9 @@ export class UpdateManifest {
}
}

// During production, if user has the output of a CSS file in content_scripts,
// we add it to the manifest so that the file is copied to the output directory.
// During production, webpack styles are bundled in a CSS file,
// and not injected in the page via <style> tag. We need to
// reference these files in the manifest.
if (compiler.options.mode === 'development') {
if (patchedManifest.content_scripts) {
patchedManifest.content_scripts =
Expand Down

0 comments on commit c970b9a

Please sign in to comment.