sanyuelanv-turntable
Version:
优化转盘转动效果 1. 缓动加速转动, 2. 均速转动 **(在没有接收到结果的时候一直均速转动)** 3. **(接受到结果)** 缓动减速转动直到停止
22 lines • 608 B
JavaScript
const path = require('path')
const process = require('process')
const webpack = require('webpack')
const nodeModuleDir = path.resolve(process.cwd(), 'node_module')
const appDir = path.resolve(process.cwd(), 'app')
module.exports = {
entry: { 'app': [path.resolve(appDir, 'app.ts')] },
plugins: [
new webpack.DefinePlugin({ __DEV__: JSON.stringify(JSON.parse(process.env.NODE_ENV || 'true')) })
],
resolve: {
extensions: [".ts", ".tsx",'.js']
},
module: {
rules: [{
test: /\.ts(x?)$/,
use: ['ts-loader'],
include: [appDir],
exclude: [nodeModuleDir]
}]
}
}