Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * WEBPACK UI CONFIGURATION
- */
- const path = require('path');
- const baseConfig = require('./webpack.base');
- const mainConfiguration = baseConfig({
- entry: path.join(process.cwd(), 'src/ui/index.jsx'),
- // Don't use hashes in dev mode for better performance
- output: {
- path: path.resolve('src/ui'),
- filename: 'react-dialog.js',
- chunkFilename: '[name].chunk.js',
- library: 'react-dialog'
- },
- plugins: [],
- externals: {
- 'react': 'react'
- }
- });
- console.log(mainConfiguration, 'main')
- // module.exports = {
- // mode: 'development',
- // entry: path.join(process.cwd(), 'src/ui/index.jsx'),
- // output: {
- // path: path.resolve('src/ui'),
- // filename: 'index-build.js',
- // libraryTarget: 'commonjs2'
- // },
- // module: {
- // rules: [{
- // test: /\.(js|jsx)$/,
- // exclude: /(node_modules)/,
- // use: {
- // loader: 'babel-loader'
- // }
- // }]
- // },
- // resolve: {
- // extensions: ['.js', '.jsx']
- // }
- // }
- module.exports = [mainConfiguration];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement