JSFiddle - React, Tailwind, and code Playground

by igalst

JavaScript

module.exports = {
	entry: './src/app.js',
	output:
	{
		path: './build',
		filename: 'bundle.js'
	},
	module:
	{
		rules: [
			// Transform all .js files required somewhere with Babel
			{
				test: /\.js$/,
				exclude: /node_modules/,
				use:
				{
					loader: 'babel-loader',
					options:
					{
						...options...
					}
				}
			},
		]
	}
};