// @ts-check import { StylableWebpackPlugin } from '@stylable/webpack-plugin'; import HtmlWebpackPlugin from 'html-webpack-plugin'; /** @type {import('webpack').Configuration} */ export default { mode: 'development', devtool: 'source-map', module: { rules: [ { test: /\.tsx?$/, loader: 'ts-loader', options: { transpileOnly: true, }, }, { test: /\.(png|jpg|jpeg|gif|svg|eot|ttf|woff|woff2)$/, type: 'asset', }, ], }, resolve: { extensions: ['.ts', '.tsx', '.js', '.json'], }, plugins: [ new StylableWebpackPlugin({ stcConfig: true }), new HtmlWebpackPlugin({ title: 'Stylable App' }), ], cache: { type: 'filesystem' }, };