Web Worker regex test (#1354)

Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
Hari Narayanan
2020-12-01 21:21:13 +05:30
committed by GitHub
parent 63a1f52482
commit b774a59db2
10 changed files with 201 additions and 11 deletions

View File

@@ -89,7 +89,11 @@ export default {
css: ["~/assets/scss/styles.scss", "~/assets/scss/themes.scss", "~/assets/scss/fonts.scss"],
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
plugins: ["~/plugins/vuex-persist", "~/plugins/v-tooltip"],
plugins: [
"~/plugins/vuex-persist",
"~/plugins/v-tooltip",
{ src: "~/plugins/web-worker", ssr: false },
],
// Auto import components (https://go.nuxtjs.dev/config-components)
components: true,
@@ -312,6 +316,14 @@ export default {
config.node = {
fs: "empty",
}
if (ctx.isClient) {
config.module.rules.unshift({
test: /\.worker\.(c|m)?js$/i,
use: { loader: "worker-loader" },
exclude: /(node_modules)/,
})
}
},
parallel: true,
cache: true,