Skip to content

janpantel/laravel-mix-remove-flow-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Mix Remove Flow Types

A laravel-mix wrapper for the remove-flow-types-loader Webpack loader.

Use this extension if you want to use Flow type annotations in your Javascript files.

Installation

# npm
npm install laravel-mix-remove-flow-types --save-dev

# yarn
yarn add laravel-mix-remove-flow-types --dev

Usage

The loader is configured to match all .js and .jsx files, there is no need to specify files that contain flow type definitions. Just call the removeFlowTypes function somewhere in your mix chain.

const mix = require('laravel-mix');
require('laravel-mix-remove-flow-types');

mix.removeFlowTypes().js('resources/js/app.js', 'public/js');

About

A laravel-mix wrapper to strip flow types before processing js files

Resources

Stars

Watchers

Forks

Packages

No packages published