Skip to content

How to config { javascriptEnabled: true } in quasar? #9333

Discussion options

You must be logged in to vote

https://quasar.dev/quasar-cli/quasar-conf-js#property-build
there is a build options called lessLoaderOptions

build: {
  lessLoaderOptions: {
    javascriptEnabled: true
  }
}

however, u can alter any webpack config thought the chainWebpack

chainWebpack (chain) {
  chain.module.rule('less').use('less').loader('less-loader').tag(opts => {
    return Object.sign(opts, { javascriptEnabled: true })
  })
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@332lfgb6
Comment options

Comment options

You must be logged in to vote
1 reply
@332lfgb6
Comment options

Answer selected by hawkeye64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants