UNPKG

react-ueditor

Version:
36 lines (34 loc) 755 B
var path = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: path.resolve(__dirname, 'index.js'), output: { filename: 'index.js', path: path.resolve(__dirname, 'dist'), }, devServer: { contentBase: path.resolve(__dirname, '..'), compress: true, port: 9001, }, plugins: [ new HtmlWebpackPlugin({ template: path.resolve(__dirname, 'index.html'), }), ], module: { rules: [ { test: /\.js$/, include: [path.resolve(__dirname), path.resolve(__dirname, '../src')], use: { loader: 'babel-loader', }, }, { test: /\.css$/, use: [ 'style-loader', 'css-loader' ], }, ], }, }