-
Notifications
You must be signed in to change notification settings - Fork 17
/
webpack.renderer.config.js
28 lines (25 loc) · 906 Bytes
/
webpack.renderer.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const path = require('path');
const rules = require('./webpack.rules');
const plugins = require('./webpack.plugins');
rules.push({
test: /\.css$/,
use: [{ loader: 'style-loader' }, { loader: 'css-loader', options: { import: true } }],
});
module.exports = {
module: {
rules,
},
plugins: plugins,
resolve: {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css'],
alias: {
'@components': path.resolve(__dirname, 'src/app/components/index.ts'),
'@hooks': path.resolve(__dirname, 'src/app/hooks/index.ts'),
'@storage': path.resolve(__dirname, 'src/app/storage/index.ts'),
'@context': path.resolve(__dirname, './src/app/context/index.ts'),
'@layouts': path.resolve(__dirname, './src/app/layouts/index.ts'),
'@core$': path.resolve(__dirname, './src/core/index.ts'),
'@core/types': path.resolve(__dirname, './src/core/typings.ts'),
},
},
};