31 строка
763 B
JavaScript
31 строка
763 B
JavaScript
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
|
const BugsnagSourceMapUploaderPlugin = require('../../../').BugsnagSourceMapUploaderPlugin
|
|
|
|
module.exports = {
|
|
entry: './src/index.js',
|
|
devtool: 'source-map',
|
|
plugins: [
|
|
new MiniCssExtractPlugin(),
|
|
new BugsnagSourceMapUploaderPlugin({
|
|
apiKey: 'YOUR_API_KEY',
|
|
endpoint: `http://localhost:${process.env.PORT}`,
|
|
ignoredBundleExtensions: process.env.IGNORED_EXTENSIONS ? process.env.IGNORED_EXTENSIONS.split(',') : undefined
|
|
})
|
|
],
|
|
output: {
|
|
publicPath: '*/dist'
|
|
},
|
|
mode: 'development',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/,
|
|
use: [
|
|
MiniCssExtractPlugin.loader,
|
|
'css-loader'
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|