Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asset-redirect-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asset-redirect-webpack-plugin

WebPack Assets Redirect Plugin

  • 1.0.4
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status Dependency Status devDependency Status npm

WebPack Assets Redirect Plugin

Route/Redirect webpack assets to proper folders. Runs all emitted webpack assets through a set of rewrite path rules to prepare a perfect assets folder structure for production build.

Usage

var RedirectAssetPlugin = require('asset-redirect-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');

{ 
 
  plugins: [ 
 
    new CopyWebpackPlugin([{
      from: 'node_modules/@angular/**/*.umd.min.js'
    }], {
      ignore: [
        '**/upgrade/**/*',
        '**/*-upgrade*',
        '**/platform-server/**/*'
      ]
    }), 
 
    new RedirectAssetPlugin([
      {
        from: /dummy.*/
      },
      {
        glob: 'app/**/*',
        to: 'assets/main/ts/'
      },
      {
        from: /\.\.\\resources\\assets/,
        to: 'assets'
      },
      {
        from: /\.\.\\resources\\node_modules\\@angular/,
        to: 'assets/js/angular'
      }
    ])
 
  ] 
}

Output

[ Deleted  /dummy.*/  ]  dummy.bundle.js  =>  /dev/null
[ Redirected  app/**/*  ]  app/account-select/account-select.component.html  =>  assets/main/ts/app/account-select/account-select.component.html
[ Redirected  app/**/*  ]  app/app.component.html  =>  assets/main/ts/app/app.component.html
[ Redirected  app/**/*  ]  app/layout-panel/layout-panel.component.html  =>  assets/main/ts/app/layout-panel/layout-panel.component.html
[ Redirected  app/**/*  ]  app/results/results.html  =>  assets/main/ts/app/results/results.html
[ Redirected  app/**/*  ]  app/search-panel/search-panel.html  =>  assets/main/ts/app/search-panel/search-panel.html
[ Redirected  app/**/*  ]  app/account-select/account-select.component.css  =>  assets/main/ts/app/account-select/account-select.component.css
[ Redirected  app/**/*  ]  app/app.component.css  =>  assets/main/ts/app/app.component.css
[ Redirected  app/**/*  ]  app/bs3-date-picker/bs3-datepicker.css  =>  assets/main/ts/app/bs3-date-picker/bs3-datepicker.css
[ Redirected  app/**/*  ]  app/grid/columnFilterEditors/multi-filter.css  =>  assets/main/ts/app/grid/columnFilterEditors/multi-filter.css
[ Redirected  app/**/*  ]  app/grid/grid-simple/grid-simple.component.css  =>  assets/main/ts/app/grid/grid-simple/grid-simple.component.css
[ Redirected  app/**/*  ]  app/layout-panel/layout-panel.component.css  =>  assets/main/ts/app/layout-panel/layout-panel.component.css
[ Redirected  app/**/*  ]  app/results/results.css  =>  assets/main/ts/app/results/results.css
[ Redirected  app/**/*  ]  app/search-panel/search-panel.css  =>  assets/main/ts/app/search-panel/search-panel.css
[ Redirected  /\.\.\/resources\/assets/  ]  ../resources/assets/scss/styles-root.css  =>  assets/scss/styles-root.css
[ Redirected  /\.\.\/resources\/assets/  ]  ../resources/assets/css/autobahn-light.css  =>  assets/css/autobahn-light.css
[ Redirected  /assets\/scss/  ]  assets/scss/styles-root.css  =>  assets/css/styles-root.css
[ Redirected  /\.\.\/resources\/node_modules\/@angular/  ]  ../resources/node_modules/@angular/common/bundles/common.umd.min.js  =>  assets/js/angular/common/bundles/common.umd.min.js
[ Redirected  /\.\.\/resources\/node_modules\/@angular/  ]  ../resources/node_modules/@angular/compiler/bundles/compiler.umd.min.js  =>  assets/js/angular/compiler/bundles/compiler.umd.min.js
[ Redirected  /\.\.\/resources\/node_modules\/@angular/  ]  ../resources/node_modules/@angular/core/bundles/core.umd.min.js  =>  assets/js/angular/core/bundles/core.umd.min.js
[ Redirected  /\.\.\/resources\/node_modules\/@angular/  ]  ../resources/node_modules/@angular/forms/bundles/forms.umd.min.js  =>  assets/js/angular/forms/bundles/forms.umd.min.js
[ Redirected  /\.\.\/resources\/node_modules\/@angular/  ]  ../resources/node_modules/@angular/http/bundles/http.umd.min.js  =>  assets/js/angular/http/bundles/http.umd.min.js
[ Redirected  /\.\.\/resources\/node_modules\/@angular/  ]  ../resources/node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.min.js  =>  assets/js/angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.min.js
[ Redirected  /\.\.\/resources\/node_modules\/@angular/  ]  ../resources/node_modules/@angular/platform-browser/bundles/platform-browser.umd.min.js  =>  assets/js/angular/platform-browser/bundles/platform-browser.umd.min.js
[ Redirected  /\.\.\/resources\/node_modules\/@angular/  ]  ../resources/node_modules/@angular/router/bundles/router.umd.min.js  =>  assets/js/angular/router/bundles/router.umd.min.js
[ RedirectAssetPlugin:  23  asset(s) redirected  1  asset(s) deleted.  ]

Keywords

FAQs

Package last updated on 16 Feb 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc