This repository was archived by the owner on Aug 24, 2019. It is now read-only.
forked from tidepool-org/blip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.config.js
More file actions
36 lines (34 loc) · 1.44 KB
/
test.config.js
File metadata and controls
36 lines (34 loc) · 1.44 KB
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
var path = require('path');
var webpack = require('webpack');
var defineEnvPlugin = new webpack.DefinePlugin({
__DEV__: false,
__TEST__: true
});
module.exports = {
module: {
loaders: [
{test: /\.js$/, exclude: /(node_modules)/, loader: 'babel-loader'},
// the JSX in tideline needs transpiling
{test: /node_modules\/tideline\/.*\.js$/, exclude: /tideline\/node_modules/, loader: 'babel-loader'},
{test: /\.less$/, loader: 'style-loader!css-loader!less-loader'},
{test: /\.gif$/, loader: 'url-loader?limit=10000&mimetype=image/gif'},
{test: /\.jpg$/, loader: 'url-loader?limit=10000&mimetype=image/jpg'},
{test: /\.png$/, loader: 'url-loader?limit=10000&mimetype=image/png'},
{test: /\.svg$/, loader: 'url-loader?limit=10000&mimetype=image/svg+xml'},
{test: /favicon\.ico$/, loader: 'file-loader?name=favicon.ico&limit=100000&mimetype=image/x-icon'},
{test: /\.eot$/, loader: 'url-loader?limit=10000&mimetype=application/vnd.ms-fontobject'},
{test: /\.woff$/, loader: 'url-loader?limit=10000&mimetype=application/font-woff'},
{test: /\.ttf$/, loader: 'url-loader?limit=10000&mimetype=application/x-font-ttf'},
{test: /\.json$/, loader: 'json-loader'}
]
},
plugins: [
defineEnvPlugin
],
node: {
fs: 'empty',
module: 'empty'
},
resolve: { fallback: path.join(__dirname, 'node_modules') },
resolveLoader: { fallback: path.join(__dirname, 'node_modules') }
};