UNPKG

react-whatsapp-text-editor

Version:

A react rtf text editor component that emulates WhatsApp text editor and output rtf on its own format (_cursive_ *bold* ~strikethrought~ ```monospace```)

41 lines (40 loc) 866 B
var path = require("path"); module.exports = { entry: "./src/index.js", output: { path: path.resolve(__dirname, "build"), filename: "index.js", libraryTarget: "umd", }, module: { rules: [ { test: /\.js$/, include: path.resolve(__dirname, "src"), use: { loader: "babel-loader", options: { presets: ["@babel/env"], }, }, }, { test: /\.s[ac]ss$/i, use: [ // Creates `style` nodes from JS strings "style-loader", // Translates CSS into CommonJS "css-loader", // Compiles Sass to CSS "sass-loader", ], }, { test: /\.css$/i, use: ["style-loader", "css-loader"], }, ], }, externals: ["react", "scrivito"], mode: "production", };