@cornerstonejs/nifti-image-loader
Version:
Cornerstone ImageLoader for NIfTI
43 lines (40 loc) • 844 B
JavaScript
const path = require('path');
const rootPath = process.cwd();
const context = path.join(rootPath, 'src');
const outputPath = path.join(rootPath, 'dist');
const bannerPlugin = require('./plugins/banner');
module.exports = {
context,
entry: {
cornerstoneNIFTIImageLoader: './imageLoader/index.js'
},
target: 'web',
output: {
filename: '[name].js',
library: '[name]',
libraryTarget: 'umd',
path: outputPath,
umdNamedDefine: true
},
devtool: 'source-map',
module: {
rules: [{
enforce: 'pre',
test: /\.js$/,
exclude: /(node_modules)/,
loader: 'eslint-loader',
options: {
failOnError: true
}
}, {
test: /\.js$/,
exclude: /(node_modules)/,
use: [{
loader: 'babel-loader'
}]
}]
},
plugins: [
bannerPlugin()
]
};