12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- const webpack = require('webpack');
-
- module.exports = {
- mode: "development",
-
- entry: [
- './demo/client.tsx'
- ],
-
- output: {
- filename: 'bundle.js',
- path: '/',
- publicPath: '/'
- },
-
- devtool: 'source-map',
-
- resolve: {
- extensions: ['.ts', '.tsx', '.js', '.jsx']
- },
-
- module: {
- rules: [
- { test: /\.ts(x?)/, use: ['awesome-typescript-loader'], exclude: /node_modules/ },
- {test: /\.css/, use: ['style-loader', 'css-loader']},
- {
- test: /\.scss$/, use: [
- {
- loader: 'style-loader'
- },
- {
- loader: 'css-loader', options: {sourceMap: true}
- },
- {
- loader: 'sass-loader', options: {sourceMap: true}
- }]
- },
- { test: /\.jpe?g$|\.gif$|\.png$|\.ico$/, use: 'file-loader?name=[name].[ext]' },
- { test: /\.eot|\.ttf|\.svg|\.woff2?/, use: 'file-loader?name=[name].[ext]' },
- ]
- },
-
- stats: {
- colors: true
- }
- };
|