Index property missing in config/index.js



  • Hi, is this a problem from my upgrade or is it a bug that the index property is missing in the beta template in the file config/index.js?
    It used to be:

     index: path.resolve(__dirname, '../dist/index.html'),
    

    and my

    quasar build 
    

    won’t work because of this…
    Regards
    Greg


  • Admin

    Make sure that under “plugins”, your webpack.dev.conf.js has this:

    ...
    new HtmlWebpackPlugin({
          filename: 'index.html',
          template: 'src/index.html',
    ...
    

    and your webpack.prod.conf.js has this:

    ...
    new HtmlWebpackPlugin({
          filename: path.resolve(__dirname, '../dist/index.html'),
          template: 'src/index.html',
    ...
    

    The “index” reference has been removed from config/index.js.



  • Excellent, it worked. I had some old conf.js files…

    Thank you!


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.