mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Add: Container test
This commit is contained in:
@@ -9,7 +9,7 @@ var remappedJson = require('../coverage/coverage-remapped.json');
|
||||
|
||||
var coverage = util.reduce(util.keys(remappedJson), function (result, source)
|
||||
{
|
||||
if (source.match(/src.*\.js$/) && source.indexOf('node_modules') < 0)
|
||||
if (isSrc())
|
||||
{
|
||||
var correctPath = source.replace(path.resolve(__dirname, '../src'), path.resolve(__dirname, '../'));
|
||||
|
||||
@@ -18,6 +18,13 @@ var coverage = util.reduce(util.keys(remappedJson), function (result, source)
|
||||
result[correctPath] = val;
|
||||
}
|
||||
|
||||
function isSrc(src)
|
||||
{
|
||||
return source.match(/src.*\.js$/) &&
|
||||
source.indexOf('node_modules') < 0 &&
|
||||
source.indexOf('modernizr') < 0;
|
||||
}
|
||||
|
||||
return result;
|
||||
}, {});
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ var webpack = require('webpack');
|
||||
exports = require('./webpack.base');
|
||||
|
||||
exports.output.filename = 'eruda.js';
|
||||
exports.devtool = false;
|
||||
exports.devtool = 'source-map';
|
||||
exports.plugins = exports.plugins.concat([
|
||||
new webpack.DefinePlugin({
|
||||
ENV: '"development"',
|
||||
|
||||
Reference in New Issue
Block a user