1234567891011121314151617181920 |
- const path = require("path");
- module.exports = {
- mode: "production",
- entry: "./index.js",
- output: {
- filename: "main.js",
- path: path.resolve(__dirname,"./dist")
- },
- module:
- {
- rules:
- [
- {
- test: /\.css$/ ,
- use:
- [ 'style-loader','css-loader']
- }
- ]
- }
- }
|