{ loader: require.resolve('file-loader'), // Exclude `js` files to keep "css" loader working as it injects // its runtime that would otherwise be processed through "file" loader. // Also exclude `html` and `json` extensions so they get processed // by webpacks internal loaders. exclude: [ /\.(js|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/, /\.styl$/ ], options: { name: 'static/media/[name].[hash:8].[ext]' } }
.test-stylus width: 100px height: 100px background black margin-top: 50px padding10px margin-left: 50px .text-box background: white color black width50px height50px