You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
468 B
27 lines
468 B
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './src/index.js',
|
|
output: {
|
|
path: path.join(__dirname, 'example_dist'),
|
|
filename: '[name].chunk.js',
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
use: [
|
|
{
|
|
loader: 'example-loader',
|
|
options: {},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
resolveLoader: {
|
|
alias: {
|
|
'example-loader': require.resolve('../../src/'),
|
|
},
|
|
},
|
|
};
|
|
|