Skip to content

Commit

Permalink
chore: 细节
Browse files Browse the repository at this point in the history
  • Loading branch information
Maorey committed Nov 22, 2019
1 parent 73f31a4 commit 73bd838
Show file tree
Hide file tree
Showing 2 changed files with 218 additions and 23 deletions.
46 changes: 23 additions & 23 deletions build/production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,29 +93,29 @@ module.exports = function(config, ENV) {
recordsPath: path.join(DIR, 'build/records.json'),
})
/// 多主题 ///
const name = 'theme-loader'
const themeLoader = require('./themeLoader')
config.plugin(name).use(themeLoader.plugin)
if (themeLoader.init(ENV).THEMES) {
const loader = path.join(DIR, 'build/themeLoader.js')
config.module
.rule('vue')
.use(name)
.loader(loader)
.before('vue-loader')
config.module
.rule('js')
.use(name)
.loader(loader)
config.module
.rule('ts')
.use(name)
.loader(loader)
config.module
.rule('tsx')
.use(name)
.loader(loader)
}
// const name = 'theme-loader'
// const themeLoader = require('./themeLoader')
// config.plugin(name).use(themeLoader.plugin)
// if (themeLoader.init(ENV).THEMES) {
// const loader = path.join(DIR, 'build/themeLoader.js')
// config.module
// .rule('vue')
// .use(name)
// .loader(loader)
// .before('vue-loader')
// config.module
// .rule('js')
// .use(name)
// .loader(loader)
// config.module
// .rule('ts')
// .use(name)
// .loader(loader)
// config.module
// .rule('tsx')
// .use(name)
// .loader(loader)
// }
fileName(config)
plugin(config, DIR)

Expand Down
195 changes: 195 additions & 0 deletions build/records.json
Original file line number Diff line number Diff line change
Expand Up @@ -918,5 +918,200 @@
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/other/App.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/index/App.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/index/App.vue?vue&type=style&index=1&lang=scss&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/index/views/About.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/components/Loading.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/components/Error.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/components/HelloWorld.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/index/views/Home/ModuleOne.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/index/views/Home/ModuleTwo.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/index/views/Home/ModuleThree.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/index/views/Home/ModuleFour.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/index/views/Home/ModuleFive.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/index/components/PageHeader.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/index/components/ModuleContainer.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
],
"mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--8-oneOf-0-1!node_modules/vue-loader/lib/loaders/stylePostLoader.js!node_modules/postcss-loader/src/index.js??ref--8-oneOf-0-2!node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-0-3!node_modules/cache-loader/dist/cjs.js??ref--0-0!node_modules/vue-loader/lib/index.js??vue-loader-options!src/pages/index/views/Home/ModuleSix.vue?vue&type=style&index=0&lang=scss&module=true&": [
{
"modules": {
"byIdentifier": {},
"usedIds": {}
},
"chunks": {
"byName": {},
"bySource": {},
"usedIds": []
}
}
]
}

0 comments on commit 73bd838

Please sign in to comment.