1.0.0 • Published 8 years ago

postxml-loader v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

postxml-loader Build Status

Postxml loader for webpack

Install

npm install postxml-loader --save-dev

Usage

Here is the example of using postxml-loader along with file-loader:

// Load plugins
const pImport       = require('postxml-import');
const pImageSize = require('postxml-image-size');

// Config
module.exports = {
    module: {
        loaders: [
            {
                test:   /\.css$/,
                loaders: [
					'file?name=[name].[ext]',
					'postxml'
				]
            }
        ]
    },
	// Array of plugins
    postxml: [
		pImport(),
		pImageSize()
	]
}