mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-24 09:48:37 +08:00
build: remove unnecessary files
This commit is contained in:
13
script/build.js
Normal file
13
script/build.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const path = require('path')
|
||||
const fs = require('licia/fs')
|
||||
|
||||
const pkg = require('../package.json')
|
||||
|
||||
delete pkg.scripts
|
||||
delete pkg.devDependencies
|
||||
|
||||
fs.writeFile(
|
||||
path.resolve(__dirname, '../dist/package.json'),
|
||||
JSON.stringify(pkg, null, 2),
|
||||
'utf8'
|
||||
)
|
||||
@@ -36,7 +36,7 @@ module.exports = {
|
||||
port: 3000
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, '../'),
|
||||
path: path.resolve(__dirname, '../dist'),
|
||||
publicPath: '/assets/',
|
||||
library: 'eruda',
|
||||
libraryTarget: 'umd'
|
||||
|
||||
Reference in New Issue
Block a user