
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
laravel-bundler
Advanced tools
Modern asset building tool for Laravel framework with better defaults.
: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 and remove webpack.mix.js
if exists.
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
<!-- header -->
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
<!-- footer -->
<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 are prefixed with MIX_
These features are not in the plan but can be enabled on demand
sass|scss
minify|combine|babel|standaloneSass
etcMIT License
vue-template-compiler
is a dev dependencies now, you should install this in your project manually in order to add
support for Vue.jsFAQs
Modern and fast asset building tool for Laravel framework with better defaults.
The npm package laravel-bundler receives a total of 100 weekly downloads. As such, laravel-bundler popularity was classified as not popular.
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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.