mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-02-02 19:42:34 -06:00
35 lines
648 B
JavaScript
35 lines
648 B
JavaScript
|
const path = require('path')
|
||
|
|
||
|
module.exports = {
|
||
|
mode: 'production',
|
||
|
|
||
|
entry: './src/index.js',
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, 'dist'),
|
||
|
filename: 'non-layered-tidy-tree-layout.js',
|
||
|
library: 'nonLayeredTidyTreeLayout',
|
||
|
libraryTarget: 'umd'
|
||
|
},
|
||
|
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
enforce: 'pre',
|
||
|
test: /\.js$/,
|
||
|
exclude: /node_modules/,
|
||
|
loader: 'eslint-loader'
|
||
|
},
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
exclude: /node_modules/,
|
||
|
use: {
|
||
|
loader: 'babel-loader',
|
||
|
options: {
|
||
|
presets: ['@babel/preset-env']
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|