Revision fd67e461c3484401ca3502f4bce0e5858f91ea7d authored by Ash on 18 May 2016, 13:44:04 UTC, committed by Ash on 18 May 2016, 13:44:04 UTC
1 parent 809f197
webpack.test.config.js
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool:"inline-source-map",
output: {
path: path.join(__dirname, 'dist')
},
resolve: {
extensions:[".js", ".ts", ".tsx","", ".webpack.js", ".web.js"],
alias: {
sinon: 'sinon/pkg/sinon'
}
},
externals: {
jsdom: 'window',
cheerio: 'window',
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': 'window',
'text-encoding': 'window'
},
module: {
loaders: [
{
test: /\.tsx?$/,
loader: 'ts-loader?instance=jsx',
include: path.join(__dirname, "src")
},
{ test: /\.json$/, loader: 'json-loader' },
{
test: /\.scss$/,
loaders: ['null-loader'],
include: path.join(__dirname, 'src')
},
{
test: /sinon\.js$/,
loader: 'imports?define=>false,require=>false'
},
{
test: /\.(jpg|png|svg)$/,
loaders: ['null-loader'],
include: path.join(__dirname, 'src')
}
],
node : { fs: 'empty' }
}
};
Computing file changes ...