Skip to content

Instantly share code, notes, and snippets.

@anton-gorbikov
Created September 16, 2019 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anton-gorbikov/90486176ab2113f2b37d4d10628e8323 to your computer and use it in GitHub Desktop.
Save anton-gorbikov/90486176ab2113f2b37d4d10628e8323 to your computer and use it in GitHub Desktop.
fable-scaffold-webpack.config
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