psd-layout-loader
v0.0.1
Published
psd layout loader for webpack
Downloads
4
Readme
psd-layout-loader
Instructs webpack to emit the required img as file and to return its psd layout
Install
npm install --save-dev psd-layout-loader
Usage
import psdLayout from './sample.psd'
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.psd$/,
loader: 'psd-layout-loader',
options: {
outImgDir : './dist'
}
}
]
}
}