Socket
Socket
Sign inDemoInstall

laravel-mix-react

Package Overview
Dependencies
391
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    laravel-mix-react

Alternate Laravel Mix webpack configuration for React projects


Version published
Maintainers
1
Created

Readme

Source

laravel-mix-react

Easy alternative Laravel Mix configuration for projects using React. Includes the babel loaders and Webpack configuration file you need to get started. (Please note that this is NOT a drop-in replacement for Laravel Mix -- you will still need to include the laravel-mix package along with this one!)

Installation

Run npm install --save-dev laravel-mix-react or yarn add --dev laravel-mix-react.

In your project's package.json, update all references to --config="node_modules/laravel-mix/setup/webpack.config.js" within the "scripts" to point to node_modules/laravel-mix-react/setup/webpack.config.js.

Advanced configuration

If you need to make further changes to Webpack, run cp node_modules/laravel-mix-react/setup/webpack.config.js ./ in your terminal. This will copy the modified webpack.config.js into the root of your project. Modify your config as needed, and then remove the --config="node_modules/laravel-mix-react/setup/webpack.config.js" lines from your package.json file.

FAQs

Last updated on 29 Jan 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc