1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-04 23:53:15 +02:00
TableFilter/webpack.test.config.js

45 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

const webpack = require('webpack');
const webpackConfig = require('./webpack.config.js');
const path = require('path');
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
module.exports = {
2018-02-28 11:53:57 +01:00
mode: 'development',
cache: true,
2016-12-08 04:21:39 +01:00
entry: webpackConfig.entry,
output: webpackConfig.output,
resolve: webpackConfig.resolve,
module: {
2017-01-29 12:50:12 +01:00
rules: [
{
test: /\.js$/,
include: path.join(__dirname, 'src'),
exclude: /tablefilter\/node_modules/,
2017-02-03 07:04:07 +01:00
loader: 'isparta-loader'
2017-02-04 02:09:20 +01:00
}
]
2017-02-04 02:09:20 +01:00
// TODO: re-instate StringReplacePlugin, currently failing
// in conjunction with 'isparta-loader'
},
2017-02-03 07:04:07 +01:00
devtool: 'source-map',
2017-01-29 12:50:12 +01:00
plugins: [
new CleanWebpackPlugin({
cleanOnceBeforeBuildPatterns: [path.join(process.cwd(), 'dist')]
}),
2017-02-03 07:04:07 +01:00
new webpack.LoaderOptionsPlugin({
debug: true,
2017-02-03 07:04:07 +01:00
options: {
isparta: {
embedSource: true,
noAutoWrap: true,
babel: {
compact: false,
presets: ['env'],
2017-02-03 07:04:07 +01:00
plugins: [['transform-es2015-classes', {loose: true}]]
}
}
}
2017-02-04 02:09:20 +01:00
})
]
};