Skip to content

vahidd/webpack-suffix-resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack suffix resolver

Setup

$ npm install webpack-suffix-resolver --save-dev
OR 
$ yarn add webpack-suffix-resolver --dev

Usage sample

const SuffixResolver = require('webpack-suffix-resolver');
const webpackConfig = {
  ...
  resolve: {
    plugins: [new SuffixResolver('ios', ['.js', '.ts'])],
  },
  ...
};

The config above will resolve files with .ios.js, .ios.ts first if there is no file matched then the original module will be resolved

About

Resolve modules with suffix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published