ware-loader
Version:
A loader for webpack that let you change your source in loader.
20 lines (18 loc) • 369 B
JavaScript
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
entry: './index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{
test: /LICENSE/,
loader: path.resolve('../..')
}
]
},
plugins: [new HtmlWebpackPlugin()]
}