UNPKG

react-read-pdf-prettier

Version:

基于react-read-pdf项目修改的一款自用的pdfview组件 有更简洁的样式

25 lines (23 loc) 732 B
// development config process.env.NODE_ENV = 'development'; const merge = require('webpack-merge'); const webpack = require('webpack'); const path = require('path'); const commonConfig = require('./common'); module.exports = merge(commonConfig, { mode: 'development', entry: [ './app.tsx', // the entry point of our app ], devServer: { hot: true, // enable HMR on the server contentBase:path.resolve('public'), disableHostCheck: true, publicPath:'/', }, devtool: 'cheap-module-eval-source-map', plugins: [ new webpack.HotModuleReplacementPlugin(), // enable HMR globally new webpack.NamedModulesPlugin(), // prints more readable module names in the browser console on HMR updates ], });