
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
laravel-mix-jigsaw
Advanced tools
laravel-mix-jigsaw
is a Laravel Mix plugin for the Jigsaw static site generator. It watches your Jigsaw site's files and triggers a new Mix build when it detects changes.
const mix = require('laravel-mix');
require('laravel-mix-jigsaw');
mix.jigsaw()
.js('source/_assets/js/main.js', 'js')
.css('source/_assets/css/main.css', 'css')
.version();
npm install -D laravel-mix-jigsaw
Require the module in your webpack.mix.js
file.
const mix = require('laravel-mix');
require('laravel-mix-jigsaw');
Enable the build tasks by calling .jigsaw()
anywhere in your Mix build chain.
mix.js('source/_assets/js/main.js', 'js')
.css('source/_assets/css/main.css', 'css')
.jigsaw();
By default this plugin watches common Jigsaw file paths and triggers a new build when it detects changes. To add watched paths or override the watcher configuration, pass a config object to .jigsaw()
:
// Add additional file paths to watch
mix.jigsaw({
watch: ['config.*.php'],
});
// Override the default config
mix.jigsaw({
watch: {
files: ['source/posts/*.blade.php'],
notDirs: ['source/_assets/', 'source/assets/', 'source/ignore/'],
},
});
If you use Laravel Mix's built-in BrowserSync integration, you may need to configure it to watch Jigsaw's paths:
mix.jigsaw()
.browserSync({
server: 'build_local',
files: ['build_*/**'],
});
source/
directory of your site. If you create a new file like source/home.blade.php
, you'll need to stop and restart Mix.Huge thanks to Brandon Nifong for creating the initial version of this plugin!
Laravel Mix Jigsaw is provided under the MIT License.
FAQs
Laravel Mix plugin for Jigsaw
The npm package laravel-mix-jigsaw receives a total of 361 weekly downloads. As such, laravel-mix-jigsaw popularity was classified as not popular.
We found that laravel-mix-jigsaw demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.