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

tile-extrude-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tile-extrude-webpack-plugin

Extrude tilesets automatically

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

TileExtrudeWebpackPlugin

npm license

A Webpack plugin to extrude tilesets automatically with tile-extruder.

It will be re-extruded automatically when added or modified images while webpack is watching.

Usage

Install:

$ npm install tile-extrude-webpack-plugin

Define into webpack.config.js:

const TileExtrudeWebpackPlugin = require('tile-extrude-webpack-plugin')
// ...
{
  entry: {
    ...
  },
  output: {
    ...
  },
  plugins: [
    new TileExtrudeWebpackPlugin({
      size: 32,
      input: './public/img/original_tilesets',
      output: './public/img/extruded_tilesets'
    })
  ]
}

Options:

KeyWhat is
sizeTile size.
inputInput directory. Original images should be here.
outputOutput directory. Extruded images will be here.
minifyMinify png when extrude. (default is true)

CLI

$ tile-extrude --input <input dir> --output <output dir> --size <tile size> --minify

or

$ tile-extrude --config <path to config>
module.exports = {
  size: 32,
  input: './input',
  output: './output',
  minify: true
}

Requirements

  • Webpack4 or higher

I'm not sure if this will be working on Webpack3 or less. Please make an issue or PR if need it.

[Examples] Projects that using this plugin

FAQs

Package last updated on 16 Jan 2021

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