forked from muhammad-fiaz/opencss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.common.ts
More file actions
34 lines (31 loc) · 795 Bytes
/
webpack.common.ts
File metadata and controls
34 lines (31 loc) · 795 Bytes
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
29
30
31
32
33
34
import path from 'path';
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import { Configuration } from 'webpack';
const commonConfig: Configuration = {
entry: './index.ts',
output: {
filename: 'opencss.bundle.js',
path: path.resolve(__dirname, 'build'),
},
module: {
rules: [
{
test: /\.ts$/,
use: 'babel-loader',
exclude: /node_modules/,
},
{
test: /\.(sa|sc|c)ss$/,
use: [
'style-loader',
'css-loader',
'postcss-loader',
'sass-loader',
],
},
],
},
plugins: [
],
};
export default commonConfig;