Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/app.fsproj',
plugins: [
new CleanWebpackPlugin(),
new HtmlWebpackPlugin({
title: 'Fable-React-App',
template: './src/index.html'
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist')
module: {
rules: [{
test: /\.fs(x|proj)?$/,
use: 'fable-loader'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment