UNPKG

image-nodes

Version:

A library for visual programming of image-processing algorithms on dicom images

29 lines (23 loc) 646 B
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: './src/index.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist') }, module: { rules: [ { test: /\.(js|jsx)$/, loader: 'babel-loader', exclude: /node_modules/ }, { test: /\.(jpg|png)$/, loader: 'url?limit=25000' }, { test: /\.(scss|css)$/, loader: "style-loader!css-loader!sass-loader" } ] }, plugins: [ new HtmlWebpackPlugin({ template: "./src/index.html", filename: "./index.html", path: path.resolve(__dirname, 'dist') }) ] };