Rename testings.js to context-loader.js

This commit is contained in:
Paulo Gustavo Veiga 2021-10-03 08:11:32 -07:00
parent 32b8f46f66
commit 6395f05d96
2 changed files with 5 additions and 10 deletions

View File

@ -25,14 +25,13 @@ const multiHtmlPlugin = namesHTML.map((name) => {
}); });
}); });
/** @type {import('webpack').Configuration} */
module.exports = { module.exports = {
entry: { entry: {
testing: './test/playground/testing.js', testing: './test/playground/context-loader.js',
}, },
output: { output: {
path: path.resolve(__dirname, 'dist', 'tests'), path: path.resolve(__dirname, 'dist', 'tests'),
filename: 'testing.js', filename: 'context-loader.js',
publicPath: '/', publicPath: '/',
}, },
devServer: { devServer: {
@ -46,17 +45,13 @@ module.exports = {
rules: [ rules: [
{ {
use: 'babel-loader', use: 'babel-loader',
test: /.(js|jsx)$/, test: /.js$/,
exclude: /node_modules/, exclude: /node_modules/,
}, }
{
type: 'asset',
test: /\.(png|svg|jpg|jpeg|gif)$/i,
},
], ],
}, },
resolve: { resolve: {
extensions: ['.js', '.jsx', '.json'], extensions: ['.js','.json'],
}, },
plugins: [ plugins: [
new CleanWebpackPlugin(), new CleanWebpackPlugin(),