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.

v0.8.3 mix.js outputs file relative to public folder

See original GitHub issue
  • Laravel Mix Version: 0.8.3
  • Node Version : v6.9.1
  • NPM Version : 3.10.8
  • OS: Windows 10

Description:

The new v0.8.3 outputs the compiled javascript relative to public folder. So if now I were to compile this code,

mix.js('resources/assets/js/app.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css');

It will output the files to:

public/public/js/app.js
public/css/app.css

Steps To Reproduce:

  • Install v0.8.3 and run npm run dev

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
JeffreyWaycommented, Feb 23, 2017

Wahoo! I’ve fixed and tagged it. npm update laravel-mix. Thanks for the help. 😃

2reactions
JeffreyWaycommented, Feb 23, 2017

@d3radicated Perfect. Can you go to that file, and change the entryName method to this?

    entryName(output) {
        return output.pathWithoutExt
            .replace(/\\/g, '/');
            .replace(this.mix.publicPath + '/', '/')
    }

And then run it again. Does that fix it? I bet it does.

Read more comments on GitHub >

github_iconTop Results From Across the Web

v0.8.3 mix.js outputs file relative to public folder #452 - GitHub
Steps To Reproduce: Install v0.8.3 and run npm run dev. The text was updated successfully, but these errors were encountered: ...
Read more >
GNU gettext utilities
The GNU gettext toolset helps programmers and translators at producing, updating and using translation files, mainly those PO files which are textual, editable ......
Read more >
ffmpeg Documentation
Do not mix input and output files – first specify all input files, then all output files. Also do not mix options which...
Read more >
Firebase Apple SDK Release Notes - Google
To review release notes for the Firebase console and for other Firebase platforms and related SDKs, refer to the Firebase Release Notes.
Read more >
How to make node.js require absolute? (instead of relative)
And what about: var myModule = require.main.require('./path/to/module');. It requires the file as if it were required from the main js file, ...
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