summaryrefslogtreecommitdiff
path: root/webpack.config.mjs
blob: e4715761136582f731971a6afb43413e4203928e (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
import {Paths, makeConfig} from '@lightscale/webpack-config';
const __dirname = import.meta.dirname;

export default (env, argv) => {

  const paths = new Paths({
    dir: __dirname,
    source: './resources',
    target: './public',
    js: './js',
    scss: './scss',
  });

  const entry = {
    main: [paths.scssEntry('main.scss')],
  };

  const config = makeConfig(env, argv, {
    paths,
    entry,
  });

  return config;
};