forked from geops/openlayers-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.neutrinorc.js
35 lines (34 loc) · 869 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
const cypress = require('cypress');
const { start } = require('neutrino');
const library = require('@neutrinojs/library');
const imageLoader = require('@constgen/neutrino-svg-loader');
const styleLoader = require('@neutrinojs/style-loader');
module.exports = {
options: {
root: __dirname,
},
use: [
library({
name: 'ole',
babel: {
presets: [
['@babel/preset-env', {
targets: {
browsers: ["last 2 versions", "ie >= 10"]
}
}]
],
plugins: [
'@babel/plugin-transform-destructuring',
'@babel/plugin-transform-object-assign',
'@babel/plugin-proposal-object-rest-spread',
]
}
}),
imageLoader(),
styleLoader({ extract: false }),
(neutrino) => {
neutrino.config.externals(['jsts', 'ol']);
},
],
};