UNPKG

funnyui

Version:

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

29 lines (24 loc) 613 B
const path = require("path"); //引入node核心模块 let config = { entry: "../src/index.js", output: { //打包好的文件,放置信息如下 path: path.resolve(__dirname, "dist"), //dirname 表示当前路径,dist 是文件夹 filename: "bundle.js" }, devServer: { inline: true, port: 3000 }, alias: { ui: path.resolve("src/") }, module: { rules: [ { test: /\.css$/, use: ["style-loader", "css-loader"] }, { test: /\.scss$/, use: ["style-loader", "css-loader", "sass-loader"] } ] } }; module.exports = config;