-
Notifications
You must be signed in to change notification settings - Fork 0
/
.beaverrc.js
61 lines (56 loc) · 1.28 KB
/
.beaverrc.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import path from 'path';
import merge from 'webpack-merge';
import WebpackNotifierPlugin from "webpack-notifier";
export const dir = 'client';
const client = path.join(__dirname, dir);
/**
* Mocha testing configuration.
*/
export const mocha = {
reporter: 'spec',
ui: 'bdd',
requires: []
};
/**
* Webpack build configuration.
*/
export const webpack = {
entry: {
readlinks: 'app.js'
},
output: {
path: 'assets/',
filename: '[name].js'
},
modifier: (config, state) => merge(config, {
output: {
filename: state.command.opts.env === 'production' ? '[name].min.js' : config.output.filename
},
module: {
rules: [
{
test: /\.(less|css)$/,
loaders: ['style-loader', 'css-loader?-url', 'less-loader']
}
]
},
plugins: [
new WebpackNotifierPlugin({ alwaysNotify: true })
]
})
};
/**
* Storybook development environment configuration.
*
* This will use the webpack configuration defined above.
*/
export const storybook = {
port: 9001,
host: null,
staticDirs: [],
https: {
enabled: false
},
devServer: {},
middleware: (router, state) => router
};