Skip to content

Extending vue-autonumeric with quasar webpack #8707

Discussion options

You must be logged in to vote

@phgrund First of all, always use path to resolve the packages.
Second, verify the file exists where you think it should be.
Third, use chainWebpack in quasar.conf.js instead, like this:

const path = require('path')
.
.
.
      chainWebpack (chain) {
        chain.plugin('eslint-webpack-plugin')
          .use(ESLintPlugin, [{ extensions: ['js', 'vue'] }])

        chain.resolve.alias.merge({
          'AutoNumeric': path.resolve(__dirname, 'node_modules/vue-autonumeric/dist/vue-autonumeric.min.js')
        })
      }

Replies: 1 comment 1 reply

Comment options

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

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