1 Star 0 Fork 363

x-spring/cuber

forked from 华哲辰/魔方栈 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
华哲辰 提交于 2020-02-22 19:47 . one page ok
var path = require("path");
var webpack = require("webpack");
module.exports = (env, argv) => ({
entry: {
"index.js": "./src/index.ts",
"wegame.js": "./src/wegame/index.ts",
"wegame/game.js": "./src/wegame/game.js",
},
output: {
path: path.resolve(__dirname, "./dist"),
publicPath: "/dist/",
filename: "[name]",
globalObject: "this"
},
module: {
rules: [
{
test: /\.s(c|a)ss$/,
use: [
'vue-style-loader',
'css-loader',
{
loader: 'sass-loader',
options: {
implementation: require('sass'),
fiber: require('fibers'),
},
options: {
implementation: require('sass'),
sassOptions: {
fiber: require('fibers'),
},
},
},
],
},
{
test: /\.css$/,
use: ["style-loader", "css-loader"]
},
{
test: /\.tsx?$/,
loader: "ts-loader"
},
{
test: /\.(html|svg)?$/,
loader: "text-loader"
},
{
test: /.(png|woff(2)?|eot|ttf)(\?[a-z0-9=\.]+)?$/,
loader: "url-loader"
}
]
},
resolve: {
alias: {
vue$: "vue/dist/vue.esm.js"
},
extensions: ["*", ".js", ".ts", ".json"]
},
devServer: {
historyApiFallback: true,
noInfo: true,
overlay: true,
disableHostCheck: true
},
performance: {
hints: false
},
devtool: argv.mode === 'production' ? "" : "#cheap-module-eval-source-map"
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/x_spring/cuber.git
git@gitee.com:x_spring/cuber.git
x_spring
cuber
cuber
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385