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

    Exclude single file from webpack build

    Help
    1
    2
    1308
    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.
    • E
      Epo last edited by

      Hi,

      i have a single config file where i put in my api urls and so on. I tried to exclude this file from the webpack build and made a seperate entry point for this file which basically works. Now i have an extra config.js file in my dist folder but in the app.js the config file is also included as an module. how can i remove it complete from the bundle and work only as a single file.

      Many thanks in advance,

      1 Reply Last reply Reply Quote 0
      • E
        Epo last edited by

        This works for me:

        webpack.base.conf.js: (new entry point)

        entry: {
        app: ‘./src/main.js’,
        config: ‘./src/config/myconfig.properties’
        },

        webpack.prod.conf.js:

        new webpack.optimize.CommonsChunkPlugin({
        name: ‘config’
        }),

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