Welcome to mirror list, hosted at ThFree Co, Russian Federation.

webpack.common.js - github.com/matsuyoshi30/harbor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2bf813739623a08996ea234dde027cc346a5ed7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const path = require('path')

module.exports = {
  entry: {
    main: ['./static/src/main.js', './static/src/theme.js'],
    search: './static/src/search.js',
  },
  output: {
    path: `${__dirname}/static/js/`,
    filename: '[name].bundle.js'
  },
  module: {
    rules: [
      {
        test: /\.css/,
        use: ['style-loader', 'css-loader'],
      },
      {
        test: /\.(woff|woff2)$/,
        type: 'asset',
      },
    ]
  }
};