1 Star 0 Fork 342

ryvius_key / cuber

forked from 华哲辰 / 魔方栈 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
华哲辰 提交于 2020-02-17 13:48 . use three module
var path = require("path");
var webpack = require("webpack");
module.exports = (env, argv) => ({
entry: {
playground: "./src/playground.ts",
algs: "./src/algs.ts",
director: "./src/director.ts"
},
output: {
path: path.resolve(__dirname, "./dist"),
publicPath: "/dist/",
filename: "[name].js",
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?$/,
loader: "text-loader"
},
{
test: /.(png|woff(2)?|eot|ttf|svg)(\?[a-z0-9=\.]+)?$/,
loader: "url-loader"
}
]
},
resolve: {
alias: {
vue$: "vue/dist/vue.esm.js",
vuetify$: "vuetify/dist/vuetify.min.js",
"vuetify/dist/vuetify.css$": "vuetify/dist/vuetify.min.css"
},
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",
plugins: [
new webpack.DllReferencePlugin({
context: __dirname,
manifest: require('./dist/manifest.json')
})
]
});
TypeScript
1
https://gitee.com/ryvius_key/cuber.git
git@gitee.com:ryvius_key/cuber.git
ryvius_key
cuber
cuber
master

搜索帮助