123456789101112131415161718192021222324252627 |
- 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/'),
- },
- },
- };
|