9 Star 41 Fork 10

Gitee 极速下载/xspreadsheet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/myliang/xspreadsheet
克隆/下载
webpack.config.js 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
myliang 提交于 2018-05-10 15:40 +08:00 . docs..
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: "./src/main.ts",
output: {
filename: "xspreadsheet.js",
path: __dirname + "/docs"
},
// Enable sourcemaps for debugging webpack's output.
devtool: "source-map",
resolve: {
// Add '.ts' and '.tsx' as resolvable extensions.
extensions: [".ts", ".tsx", ".js", ".json"]
},
module: {
rules: [
{test: /\.less$/, loader: 'style-loader!css-loader!less-loader'},
// All files with a '.ts' or '.tsx' extension will be handled by 'awesome-typescript-loader'.
{ test: /\.tsx?$/, loader: "awesome-typescript-loader" },
{test: /\.(eot|woff|woff2|ttf|svg)([\\?]?.*)$/, loader: "file-loader"},
// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
{ enforce: "pre", test: /\.js$/, loader: "source-map-loader" }
]
},
plugins: [
new ExtractTextPlugin("xspreadsheet.css")
]
// When importing a module whose path matches one of the following, just
// assume a corresponding global variable exists and use that instead.
// This is important because it allows us to avoid bundling all of our
// dependencies, which allows browsers to cache those libraries between builds.
// externals: {
// "react": "React",
// "react-dom": "ReactDOM"
// },
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/mirrors/xspreadsheet.git
git@gitee.com:mirrors/xspreadsheet.git
mirrors
xspreadsheet
xspreadsheet
master

搜索帮助