mon-entreprise/publicodes/webpack.test.js

28 lines
543 B
JavaScript
Raw Permalink Normal View History

const { commonLoaders } = require('../webpack/common')
2020-05-26 12:32:13 +00:00
const { EnvironmentPlugin } = require('webpack')
module.exports = {
resolve: {
extensions: ['.ts', '.tsx', '.js']
},
output: {
devtoolFallbackModuleFilenameTemplate: '[absolute-resource-path]?[hash]',
devtoolModuleFilenameTemplate: '[absolute-resource-path]'
},
mode: 'development',
module: {
rules: [
...commonLoaders(),
{
test: /\.css$/,
use: ['css-loader', 'postcss-loader']
}
]
2020-05-26 12:32:13 +00:00
},
plugins: [
new EnvironmentPlugin({
NODE_ENV: 'test'
})
]
}