blob: b11a027a933db4685abea521249e06a7dd6af730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const package = require('./package.json');
module.exports = {
context: path.resolve(__dirname, 'app'),
entry: './index.js',
mode: 'development',
module: {
rules: [
{
test: /\.jsx?$/,
use: {
loader: 'babel-loader',
options: package.babel,
},
},
],
},
plugins: [
new HtmlWebpackPlugin({ title: 'Isomorphic Keyboard Explorer' }),
],
}
|