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.

How do you output files outside of your public path without changing it?

See original GitHub issue
  • Laravel Mix Version: 1.0.7
  • Node Version: 8.1.2
  • NPM Version: 5.0.4
  • OS: LMDE 2 Betsy

Description:

So I want to be able to output files into other directories outside of the public path without changing it via mix.setPublicPath(). Not sure if it is currently possible but I did something similar using Laravel Elixir but now I am trying to move to Laravel Mix.

Steps To Reproduce:

mix.standaloneSass('resources/assets/sass/example.scss', 'resources/assets/css');
mix.copy('resources/assets/css/example.css', 'resources/assets/css/test/second_example.css');
mix.styles(['resources/assets/css/example.css', 'resources/assets/css/test/second_example.css'], 'public/css').version();

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jeremy-smith-macocommented, Jul 6, 2017
2reactions
jeremy-smith-macocommented, Jul 3, 2017

@isaacesso That does work for the output files, yes, but the mix-manifest.json is put in the project root folder but I want it inside of the Public folder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you output files outside of your public path without ...
So I want to be able to output files into other directories outside of the public path without changing it via mix.setPublicPath() ....
Read more >
Public Path
Essentially, every file emitted to your output.path directory will be referenced from the output.publicPath location. This includes child chunks (created ...
Read more >
c# - How to read existing text files without defining path
txt), select properties and then select "Build Action" as Content and Copy to "Output Directory" "Copy always" or "Copy if newer".
Read more >
Configuration — Eleventy
Configuration files are optional. Add an .eleventy.js file to root directory of your project to configure Eleventy to your own project's needs.
Read more >
Content Configuration
Paths are configured as glob patterns, making it easy to match all of the content files in your project without a ton of...
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