UNPKG

quill1-table

Version:

Table functionality for quilljs. Forked from https://github.com/acatec/quill-table-tbf which is a fork of original https://github.com/dost/quilljs-table

56 lines (54 loc) 1.46 kB
const path = require('path'); const webpack = require('webpack'); const TerserPlugin = require("terser-webpack-plugin"); module.exports = { entry: './src/index.js', output: { filename: 'quill1-table.js', library: { name: 'quill1Table', type: 'var', export: 'default' }, libraryTarget: 'umd', path: path.resolve(__dirname, 'dist') }, externals: { quill: 'quill', }, module: { rules: [ { test: /\.css$/, use: [ 'style-loader', 'css-loader' ] }, { test: /\.js$/, exclude: /(node_modules)/, use: { loader: 'babel-loader', options: { presets: ["@babel/preset-env"], plugins: [ "@babel/plugin-transform-runtime", "@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-object-rest-spread" ], } } } ] }, optimization: { minimize: true, minimizer: [new TerserPlugin()] }, plugins: [ new webpack.SourceMapDevToolPlugin({ filename: 'quill1-table.js.map', }), ] };