Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
laravel-bundler
Advanced tools
Modern asset building tool for Laravel framework.
:warning: This package does not work with laravel-mix
; you should remove laravel-mix
before using this one
# npm
npm install laravel-bundler
# yarn
yarn add laravel-bundler
Create a webpack.config.js
file on your project root
module.exports = require('laravel-bundler')({
entry: {
app: './resources/js/app.js',
},
});
Update your package.json
"scripts": {
"dev": "cross-env NODE_ENV=development webpack --progress --mode development",
"watch": "npm run dev -- --watch",
"prod": "cross-env NODE_ENV=production webpack --progress --mode production",
"hot": "cross-env NODE_ENV=development webpack-dev-server --progress --hot"
},
Update your blade template
<link href="{{ mix('css/app.css') }}" rel="stylesheet" media="all">
<script src="{{ mix('js/manifest.js') }}"></script>
<script src="{{ mix('js/vendor.js') }}"></script>
<script src="{{ mix('js/app.js') }}"></script>
Update your .gitignore
/public/hot
/public/js
/public/css
/public/fonts
/public/images
/public/mix-manifest.json
@babel/preset-env
CSS|SASS|SCSS
supportautoprefixer
and cssnano
mix-manifest.json
compatible with Laravel's mix()
helper.env
file that prefixed are with MIX_
These features are not in the plan but can be enabled on demand
sass|scss
minify|combine|babel|standaloneSass
etcMIT License
FAQs
Modern and fast asset building tool for Laravel framework with better defaults.
We found that laravel-bundler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.