UNPKG

react-html-connector

Version:

A JavaScript function that eases integratation between React (or Preact) into existing server-side templating.

26 lines (20 loc) 392 B
const base = require('./base'); const { loader } = require('webpack-strip'); const removePropTypeValidation = { test: /\.js$/, loader: loader('checkPropTypes'), }; module.exports = { ...base, mode: 'production', output: { ...base.output, filename: 'index.min.js', }, module: { rules: [ ...base.module.rules, removePropTypeValidation, ], }, };