All Projects → mtscout6-team → asset-map-webpack-plugin

mtscout6-team / asset-map-webpack-plugin

Licence: MIT license
Webpack plugin that creates a map of assets to public url slug for server agnostic usage.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to asset-map-webpack-plugin

Webpack Cdn Plugin
A webpack plugin that use externals of CDN urls for production and local node_modules for development
Stars: ✭ 306 (+2085.71%)
Mutual labels:  assets, webpack-plugin
egg-view-assets
Manage frontend assets in development and production.
Stars: ✭ 51 (+264.29%)
Mutual labels:  assets
Assetchecker
👮Sanitize your Assets.xcassets files
Stars: ✭ 167 (+1092.86%)
Mutual labels:  assets
eleventy-load
Resolve dependencies and post-process files in your Eleventy project
Stars: ✭ 28 (+100%)
Mutual labels:  assets
Unity Aseprite Importer
An aseprite-file importer for unity written in C#, built upon the experimental AssetImporter API
Stars: ✭ 177 (+1164.29%)
Mutual labels:  assets
phoenix assets webpack
Asset Pipeline with Webpack on Phoenix
Stars: ✭ 52 (+271.43%)
Mutual labels:  assets
Awesome Opensource Unity
a list of curated opensource Unity packages for future proof Game Developers
Stars: ✭ 161 (+1050%)
Mutual labels:  assets
composer-asset-compiler
Composer plugin that installs dependencies and compiles assets based on configuration.
Stars: ✭ 19 (+35.71%)
Mutual labels:  assets
sitemap-webpack-plugin
Webpack plugin to generate a sitemap.
Stars: ✭ 72 (+414.29%)
Mutual labels:  webpack-plugin
Asset Packagist
Asset Packagist
Stars: ✭ 235 (+1578.57%)
Mutual labels:  assets
Rtimageassets
A Xcode plugin to automatically generate 2x, 1x image from 3x image for you, or upscale to 3x from 2x
Stars: ✭ 2,490 (+17685.71%)
Mutual labels:  assets
Django Webpack Loader
Transparently use webpack with django
Stars: ✭ 2,327 (+16521.43%)
Mutual labels:  assets
webpack-bugsnag-plugins
Webpack plugins for common Bugsnag actions.
Stars: ✭ 29 (+107.14%)
Mutual labels:  webpack-plugin
Unitymobileinput
Unity mobile Input plugin for iOS and Android (Unity UI compatible)
Stars: ✭ 170 (+1114.29%)
Mutual labels:  assets
webpack-omit-js-for-css-plugin
This plugin will omit bundled JS files for dependencies that are exclusively CSS, which become obsolete once mini-css-extract-plugin extracts inlined CSS into its own .css file
Stars: ✭ 14 (+0%)
Mutual labels:  webpack-plugin
Androidlibrary
Android library to reveal or obfuscate strings and assets at runtime
Stars: ✭ 162 (+1057.14%)
Mutual labels:  assets
Ocsinventory Server
Communication server of OCS Inventory
Stars: ✭ 214 (+1428.57%)
Mutual labels:  assets
nunjucks-webpack-plugin
A webpack plugin for nunjucks.
Stars: ✭ 27 (+92.86%)
Mutual labels:  webpack-plugin
eruda-webpack-plugin
A webpack plugin of eruda to help you develop mobile app
Stars: ✭ 56 (+300%)
Mutual labels:  webpack-plugin
RAImagePicker
📸 iMessage-like, Image Picker Controller Provides custom features.
Stars: ✭ 14 (+0%)
Mutual labels:  assets

Webpack Asset Map Plugin

Build Status

Creates a json file that any server side technology can consume for asset declarations. Example output file:

{
  "assets": {
    "./smiley.jpeg": "/assets/smiley-db4f287d06928156270ca185fef0e026.jpeg",
    "./test-checklist.jpeg": "/assets/test-checklist-b3b0fe76f4485db43467876f664d1f62.jpeg"
  },
  "chunks": {
    "index": [
      "/assets/index-2c9c445686f51177cf62.js"
      "/assets/index-2c9c445686f51177cf62.css"
    ]
  }
}

The key is the relative path from the generated file to the image location in your source location. The value is the public url slug generated by webpack.

Usage

For webpack 1, use version 2.x of asset-map-webpack-plugin; for webpack 2/3, use version 3.x.

Add to the plugins array in your webpack config:

import AssetMapPlugin from 'asset-map-webpack-plugin';

export default {
  ...
  plugins: [
    /**
     * AssetMapPlugin
     *
     * @param {string} outputFile - What to name the output JSON file (written to the same directory as the other webpack assets)
     * @param {string} [relativeTo] - Key assets relative to this path, otherwise defaults to be relative to webpack `path`
     */
    new AssetMapPlugin(outputFilename, relativeTo)
  ]
};
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].