No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Index property missing in config/index.js

    Help
    2
    3
    1054
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gregorybleiker last edited by

      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

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        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.

        1 Reply Last reply Reply Quote 1
        • G
          gregorybleiker last edited by

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

          Thank you!

          1 Reply Last reply Reply Quote 1
          • First post
            Last post