question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set custom path for chunk files

See original GitHub issue
  • Laravel Mix Version: 1.6.0 (npm list --depth=0)
  • Node Version (node -v):
  • NPM Version (npm -v):
  • OS:

Description:

Hello, My laravel structure is : /myApp/ (/app, /config, /resources…) <= laravel /wpublic (/js, /css) <= here i put my index.php file, this is the content of my public folder How can i set a custom path for chunk files? For example for js files i want using this path /wpublic/js and for chunks /wpublic/js/chunks

Steps To Reproduce:

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

19reactions
ankurk91commented, Nov 11, 2017

Search before creating new issue

//webpack.mix.js
mix.setPublicPath('wpublic');
mix.webpackConfig({
    output: {
        chunkFilename: 'js/chunks/[name].js',
    },
});
3reactions
ankurk91commented, Nov 13, 2017

Don’t run too fast. Solve your issues one by one. Learn the basics, clear the concepts. I can’t teach you the whole development flow. Jeffrey way runs a free website called Laracasts for people like you. Invest some time in watching those webseries and you will no longer require asking such questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customize output directory for lazy loaded chunks in Angular 4
Create "extra-webpack.config.js" in project root directory. Update the case values as needed for your files. This is a modified example from ...
Read more >
MiniCssExtractPlugin - webpack
This option determines the name of non-entry chunk files. ... Specifies a custom public path for the external resources like images, files, etc...
Read more >
How to name a webpack chunk (including split and common ...
Naming your entry file, like app.js in Webpack is fairly simple, using a webpack.config.js file. const path = require ...
Read more >
Code Splitting | Laravel Mix Documentation
Basic Usage; Customize the Runtime Chunk Path; The Manifest File ... with different arguments to extract different sets of libraries into separate files....
Read more >
rollup.js
Rollup should typically be used from the command line. You can provide an optional Rollup configuration file to simplify command line usage and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found