forked from nathandunn/GenomeFeatureComponent
-
Notifications
You must be signed in to change notification settings - Fork 4
/
webpack.config-test.js
40 lines (38 loc) · 1014 Bytes
/
webpack.config-test.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
var nodeExternals = require('webpack-node-externals');
require.extensions['.scss'] = function () {
return null;
};
module.exports = {
mode: 'development',
target: 'node', // in order to ignore built-in modules like path, fs, etc.
externals: [nodeExternals()], // in order to ignore all modules in node_modules folder
output: {
devtoolModuleFilenameTemplate : '[absolute-resource-path]',
devtoolFallbackModuleFilenameTemplate: '[absolute-resource-path]?[hash]'
},
devtool: '#inline-cheap-module-source-map',
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: 'babel-loader'
},
{
test: /\.(css|scss)$/,
exclude: /node_modules/,
use: 'null-loader'
},
{
test: /\.(css|scss)$/,
exclude: /src/,
use: 'null-loader'
},
{
test: /\.(jpg|png|ttf|eot|woff|woff2|svg)$/,
exclude: /node_modules/,
use: 'null-loader'
}
]
},
};