grid/webpack.config.js

29 lines
808 B
JavaScript
Raw Normal View History

const path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'src', 'index.js'),
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
2023-01-09 22:35:07 +00:00
module: {
rules: [
2023-01-09 22:56:10 +00:00
// sass support with `import './styles.scss'`
2023-01-09 22:35:07 +00:00
{
test: /\.s[ac]ss$/i,
use: ['style-loader', 'css-loader', 'sass-loader'],
},
2023-01-09 22:56:10 +00:00
// css support with `import './styles.css'`
{
2023-01-09 23:01:06 +00:00
test: /\.css$/i,
2023-01-09 22:56:10 +00:00
use: ['style-loader', 'css-loader'],
},
// image support with `import Image from './image.png'`
{
test: /\.(png|svg|jpg|jpeg|gif)$/i,
type: 'asset/resource',
},
2023-01-09 22:35:07 +00:00
],
},
};