-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
webpack.config.js
31 lines (30 loc) 路 816 Bytes
/
webpack.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
29
30
31
const { join, resolve } = require('path');
const MJMLPlugin = require('./src/webpack-mjml-store');
const CleanTerminalPlugin = require('clean-terminal-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const SRC = './__tests__/mjml/';
module.exports = () => {
return {
devtool: false,
entry: {},
mode: 'development',
output: {
path: join(__dirname, 'dist'),
clean: true
},
plugins: [
new CleanWebpackPlugin(),
new MJMLPlugin(join(SRC, 'templates/*.mjml'), {
filePath: join(SRC, 'components'),
outputPath: resolve(__dirname, 'dist')
}),
new CleanTerminalPlugin({ skipFirstRun: true })
],
stats: {
builtAt: true,
colors: true,
entrypoints: false,
modules: false
}
};
};