1 Star 3 Fork 11

練氣士/cesium-particle

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.glsl.config.js 554 Bytes
一键复制 编辑 原始数据 按行查看 历史
練氣士 提交于 2021-05-14 10:39 +08:00 . change file organization and build way
const path = require('path');
module.exports = {
mode: 'production',
entry: path.resolve(__dirname, 'packages/shader/index.js'),
output: {
path: path.join(__dirname, 'src/shader/'),
filename: 'shader.min.js',
libraryTarget: 'commonjs' //模块输出方式
},
resolve: {
extensions: ['.js'],
},
module: {
rules: [
{
test: /(\.js)$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
{
test: /\.(frag|vert)$/,
loader: 'webpack-glsl-loader'
}
]
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/hong_fa_chi/cesium-particle.git
git@gitee.com:hong_fa_chi/cesium-particle.git
hong_fa_chi
cesium-particle
cesium-particle
master

搜索帮助