forked from unicar9/jizhi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.neutrinorc.js
44 lines (43 loc) · 871 Bytes
/
.neutrinorc.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
const copy = require('@neutrinojs/copy')
const standardjs = require('@neutrinojs/standardjs')
const react = require('@neutrinojs/react')
const jest = require('@neutrinojs/jest');
module.exports = {
options: {
root: __dirname,
tests: 'src'
},
use: [
copy({
patterns: [
{
from: 'src/static',
to: 'static'
},
{
from: 'manifest.json',
to: './manifest.json'
},
{
from: 'background.js',
to: './background.js'
}
]
}),
standardjs(),
react({
html: {
title: 'New Tab',
},
style: {
test: /\.(css|sass|scss)$/,
loaders: [
{ loader: 'sass-loader', useId: 'sass' }
]
}
}),
jest({
setupTestFrameworkScriptFile: '<rootDir>/src/setupTests.js'
})
]
};