elm-google-sign-in
Version:
Elm bindings to the "Sign in with Google" widget
33 lines (31 loc) • 718 B
JavaScript
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
module.exports = {
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
},
module: {
rules: [
{
test: /\.css$/,
use: ["style-loader", "css-loader"]
},
{
test: /\.elm$/,
exclude: [/elm-stuff/, /node_modules/],
use: {
loader: 'elm-webpack-loader',
options: {
optimize: false,
files: [ path.resolve(__dirname, "src/Main.elm") ]
}
}
}
]
},
plugins: [ new HtmlWebpackPlugin({ template: 'index.html' }) ],
mode: 'development'
};