UNPKG

hardhat-docgen

Version:

Generate NatSpec documentation automatically on compilation

38 lines (36 loc) 765 B
const webpack = require('webpack'); const VueLoaderPlugin = require('vue-loader/lib/plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { mode: 'production', entry: `${ __dirname }/src/main.js`, module: { rules: [ { test: /\.vue$/, loader: 'vue-loader', }, { test: /\.css$/, use: [ 'vue-style-loader', 'css-loader', ], }, ], }, resolve: { alias: { 'vue$': 'vue/dist/vue.esm.js', }, }, plugins: [ new webpack.ProgressPlugin(), new HtmlWebpackPlugin({ title: 'Hardhat Docgen', template: `${ __dirname }/src/index.html`, filename: 'index.html', }), new VueLoaderPlugin(), ], };