Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

14 Commits

Repository files navigation

NPM Status

Shell Loader

A Webpack loader for running arbitrary shell scripts when loading files.

Install

npm install --save-dev shell-loader

Usage

Documentation: Using loaders

Add shell-loader your Webpack configuration object, setting options.script to the shell script you want to run on each file. Example;

module: {rules: [{test: /.*\.css$/,use: ['css-loader',{loader: 'shell-loader',options: {script: 'postcss --use autoprefixer'}}]}]}

About

A Webpack loader that runs an arbitrary script on matching files

Topics

Resources

Stars

22 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages