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.

Build artifacts should be in default .gitignore

See original GitHub issue
  • Laravel Mix Version: 1.4.2
  • Node Version (node -v): 7.8.0
  • NPM Version (npm -v): 4.2.0
  • OS: Windows 10

Description:

Laravel’s default .gitignore does not contain Mix’s build artifacts, such as public/mix-manifest.json as well as the public/js/app.js and public/css/app.css that come configured out-of-the-box. This requires extra work from people that are using laravel-mix (to manually add the files to the .gitignore), and might cause people to accidentally commit them to source control.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:39
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

55reactions
JeffreyWaycommented, Sep 5, 2017

public/mix-manifest.json should be committed.

50reactions
Daniel15commented, Sep 7, 2017

Sure, but you shouldn’t check it in to source control. Instead, running npm run prod should be part of the deployment script. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build artifacts should be in default .gitignore · Issue #1159
Laravel's default .gitignore does not contain Mix's build artifacts, such as public/mix-manifest.json as well as the public/js/app ...
Read more >
Prevent build artifacts from going into revision control
how do I create .gitignore and prevent build artifact from going into revision control? how do I do it exactly? can anyone give...
Read more >
Git Ignore File: How and When to Use It
Artifacts are produced throughout the development process. These large binary assets can be completed builds, precompiled headers, ...
Read more >
Use the .artifactignore file - Azure Artifacts
.git file is ignored by default if you don't have an .artifactignore file. You can re-include it by creating an empty .artifactignore file....
Read more >
gitignore file - ignoring files in Git
Ignored files are usually build artifacts and machine generated files that can be derived from your repository source or should otherwise not be...
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