mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-10-22 19:45:23 +00:00
删除
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
const Fs = require("fs");
|
||||
const Path = require("path");
|
||||
const JsonBeautifully = require('json-beautifully');
|
||||
|
||||
class ChromeManifest {
|
||||
|
||||
|
||||
constructor(options) {
|
||||
this.options = options;
|
||||
|
||||
}
|
||||
|
||||
apply(compiler) {
|
||||
compiler.plugin('done', function (compilation, callback) {
|
||||
let manifest = this.options.manifest;
|
||||
let outFile = this.options.outFile;
|
||||
if (manifest && outFile) {
|
||||
// JSON.stringify(require(manifest))
|
||||
Fs.writeFileSync(outFile, JsonBeautifully(require(manifest)));
|
||||
console.log(`\n生成manifest文件: ${outFile}`);
|
||||
}
|
||||
}.bind(this))
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ChromeManifest
|
@@ -1,12 +0,0 @@
|
||||
import Vue from 'vue';
|
||||
import index from './index.vue';
|
||||
|
||||
import ElementUI from 'element-ui'
|
||||
import 'element-ui/lib/theme-chalk/index.css'
|
||||
Vue.use(ElementUI);
|
||||
|
||||
|
||||
new Vue({
|
||||
el: '#app',
|
||||
render: h => h(index)
|
||||
});
|
@@ -1,19 +0,0 @@
|
||||
<template>
|
||||
<el-button @click="onClickTest">1111</el-button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "index",
|
||||
methods: {
|
||||
onClickTest() {
|
||||
console.log(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@@ -1,9 +0,0 @@
|
||||
import Vue from 'vue';
|
||||
import app from './index.vue';
|
||||
import ElementUI from 'element-ui';
|
||||
import 'element-ui/lib/theme-chalk/index.css';
|
||||
|
||||
Vue.use(ElementUI);
|
||||
new Vue({
|
||||
render: h => h(app)
|
||||
}).$mount('#app');
|
@@ -1,16 +0,0 @@
|
||||
<template>
|
||||
<div id='app' style="background: red;">
|
||||
1111
|
||||
<!-- <app></app>-->
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
// import app from './app.vue';
|
||||
|
||||
export default {
|
||||
name: 'app',
|
||||
components: {
|
||||
// app,
|
||||
}
|
||||
};
|
||||
</script>
|
4
CocosCreatorInspector/src/shims-vue.d.ts
vendored
4
CocosCreatorInspector/src/shims-vue.d.ts
vendored
@@ -1,4 +0,0 @@
|
||||
declare module '*.vue' {
|
||||
import Vue from 'vue';
|
||||
export default Vue;
|
||||
}
|
@@ -1,8 +0,0 @@
|
||||
import Vue from 'vue';
|
||||
|
||||
import index from './index.vue';
|
||||
|
||||
new Vue({
|
||||
el: '#app',
|
||||
render: h => h(index)
|
||||
});
|
@@ -1,15 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
111
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import Vue from 'vue'
|
||||
|
||||
export default class index extends Vue {
|
||||
name: string = 'test-index'
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
|
||||
</style>
|
@@ -31,12 +31,7 @@ module.exports = {
|
||||
mode: 'development',
|
||||
entry: {
|
||||
// test: resolve('test'),
|
||||
popup: resolve('popup/index.js'),
|
||||
devtools: resolve('devtools'),
|
||||
devtools_panel: resolve('devtools/panel'),
|
||||
background: resolve('background'),
|
||||
options: resolve('options'),
|
||||
content: resolve('content'),
|
||||
inject: resolve('content/inject'),
|
||||
|
||||
// devInspector: path.resolve(__dirname, './src/dev/devInspector/main.js'),
|
||||
@@ -62,11 +57,6 @@ module.exports = {
|
||||
dry: false,//启用删除文件
|
||||
}),
|
||||
|
||||
// htmlPage('test', 'test', ['test']),
|
||||
htmlPage('popup', 'popup', ['popup']),
|
||||
htmlPage('devtools', 'devtools', ['devtools']),
|
||||
htmlPage('devtools_panel', 'devtools_panel', ['devtools_panel']),
|
||||
htmlPage('options', 'options', ['options']),
|
||||
htmlPage('background', 'background', ['background']),
|
||||
new ChromeManifest({
|
||||
outFile: Path.join(__dirname, 'build/manifest.json'),
|
||||
|
Reference in New Issue
Block a user