postxml-loader
v1.0.0
Published
Postxml loader for webpack
Downloads
16
Maintainers
Readme
postxml-loader
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()
]
}