Closed cezaraugusto closed 3 months ago
I received the following error message in the console, may need to pay attention toļ¼
I received the following error message in the console, may need to pay attention toļ¼
Nice catch! Turns out it was related to MiniCssExtractPlugin
. I did a change where we use the style-loader
to just inject the styles into the page, so now we are working with default import
statements for CSS imports and no console errors anymore.
I made some changes to the
main
branch and now thestart
command is now a combination of thebuild
+preview
commands, so runningyarn start <extension-path>
should reflect the extension in a production environment.To test this PR, ensure that:
yarn start <extension-path>
for the React template builds the extension and loads the browser in production.yarn start <extension-path>
for the Vue.js template builds the extension and loads the browser in production.--browser=edge
or--browser=firefox --polyfill
manifest_version
is set to2
and usesbackground.scripts
instead ofbackground.service_worker
. For some reason I couldn't make it work using V3.background.service_worker
caches while switching between betweendev
/start
commands, so good to test toggling between these environments to assert the extension reloads as usual.Tough one!
React-TypeScript template (production mode)
Vue-TypeScript template (production mode)
Fix #95 Fix #96