webpack-contrib / bundle-loader

Bundle Loader
MIT License
658 stars 59 forks source link

Pass reqExp option to interpolateName method #10

Closed vstukanov closed 9 years ago

vstukanov commented 9 years ago

Add ability to generate dynamic bundle name according to required file path

Example:

module: {
  loaders: [
    { 
      test: /bundle\.js$/, 
      loader: 'bundle',
      query: { 
        lazy: true, 
        name: "[1]",
        regExp: "([\\w\\.]+)\\/[\\w\\.]+$"
      }
    }
  ]
}
sokra commented 9 years ago

Thanks