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.

Change output directory

See original GitHub issue

I can’t seem to find a way to change where the resulting files are output. At the moment they are all put in webpack’s output.path, but in my case this isn’t ideal. Is there any way to change this?

Many thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
PeterKottascommented, Dec 18, 2017

It took a bit of effort for me to figure it out so I though I’ll provide my solution for the ones to come

{
  test: /\.(png|jpg|jpeg|gif)$/,
  use: {
    loader: 'responsive-loader',
    options: {
      adapter: require('responsive-loader/sharp'),
      placeholder: true,
      placeholderSize: 50,
      name: 'images/[name]-[hash]-[width].[ext]'
    }
  }
}
1reaction
jerstuckicommented, Dec 19, 2017

@tombeers @PeterKottas I’ve documented the missing options in #48. I also updated the context implementation to be the same as file-loader. That said, file-loader has another option outputPath which does something similar but not the same thing? @alex-ketch any idea what the difference exactly is?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the build output directory - Visual Studio (Windows)
To change the build output directory using the current .NET Project Designer · Right-click on the project node in Solution Explorer and select ......
Read more >
visualstudio-docs/how-to-change-the-build-output-directory ...
To change the build output directory using the current .NET Project Designer · Right-click on the project node in Solution Explorer and select...
Read more >
How can I change the output directory? - MiKTeX
You can use the option --output-directory=NAME to specify an alternative location for all output files. For example, you would run
Read more >
How to change output directory for a target - xcode
Go to File -> Project Settings. · Click the Advanced button under Derived Data Location. Under build location select custom and choose your ......
Read more >
How can I change the output folder of my webUI install? - Reddit
I'm using the windows HLKY webUI which is installed on my C drive, but I want to change the output directory to a...
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