9 Star 15 Fork 6

Gitee 极速下载/cad.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/ghemingway/cad.js
克隆/下载
webpack.config.js 2.23 KB
一键复制 编辑 原始数据 按行查看 历史
var path = require("path"),
webpack = require("webpack"),
ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
cache: true,
debug: true,
devtool: 'inline-source-map',
sourceMapFileName: "[file].map",
context: path.join(__dirname, "/src/client"),
entry: {
main: "./main",
webworker: "./models/webworker"
},
output: {
path: "./public/js/",
filename: "[name].js",
chunkFilename: "[id].js",
sourceMapFilename: "[name].map",
publicPath: "/js/"
},
module: {
loaders: [
{ test: /bootstrap\/js\//, loader: 'imports?jQuery=jquery' },
// required to write "require('./style.scss')"
{
test: /\.scss$/,
loader: ExtractTextPlugin.extract("css?sourceMap!sass?sourceMap")
},
{ test: /\.png$/, loader: "url-loader?mimetype=image/png" },
{ test: /\.gif$/, loader: "url-loader?mimetype=image/gif" },
// required for bootstrap icons
{ test: /\.(woff|woff2)$/, loader: "url-loader?prefix=font/&limit=5000&mimetype=application/font-woff" },
{ test: /\.ttf$/, loader: "file-loader?prefix=font/" },
{ test: /\.eot$/, loader: "file-loader?prefix=font/" },
{ test: /\.svg$/, loader: "file-loader?prefix=font/" },
// required for react jsx
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: "babel-loader",
query: {
presets: ['es2015', 'react']
}
},
// required for GLSL support
{ test: /\.glsl$/, loader: 'webpack-glsl' }
]
},
resolve: {
extensions: ['', '.js', '.jsx', '.scss'],
alias: {
underscore : "lodash"
}
},
plugins: [
new webpack.ProvidePlugin({
"_": "lodash",
"$": "jquery",
"jQuery": "jquery",
"Backbone": "backbone",
"THREE": "three"
})
,new ExtractTextPlugin("[name].css")
]
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/cad.js.git
[email protected]:mirrors/cad.js.git
mirrors
cad.js
cad.js
master

搜索帮助