refactor: remove duplicate loader

This commit is contained in:
Clark Du 2018-03-22 17:16:06 +08:00 committed by Pooya Parsa
parent d35c00d729
commit 919e3e7f80
2 changed files with 0 additions and 12 deletions

View File

@ -9,12 +9,6 @@ export default function () {
this.extendBuild(config => { this.extendBuild(config => {
// Add CoffeeScruot loader // Add CoffeeScruot loader
config.module.rules.push(coffeeLoader) config.module.rules.push(coffeeLoader)
// Add CoffeeScript loader for vue files
for (let rule of config.module.rules) {
if (rule.loader === 'vue-loader') {
rule.options.loaders.coffee = coffeeLoader
}
}
// Add .coffee extension in webpack resolve // Add .coffee extension in webpack resolve
if (config.resolve.extensions.indexOf('.coffee') === -1) { if (config.resolve.extensions.indexOf('.coffee') === -1) {
config.resolve.extensions.push('.coffee') config.resolve.extensions.push('.coffee')

View File

@ -18,12 +18,6 @@ export default function () {
tsLoader tsLoader
) )
) )
// Add TypeScript loader for vue files
for (let rule of config.module.rules) {
if (rule.loader === 'vue-loader') {
rule.options.loaders.ts = tsLoader
}
}
// Add .ts extension in webpack resolve // Add .ts extension in webpack resolve
if (config.resolve.extensions.indexOf('.ts') === -1) { if (config.resolve.extensions.indexOf('.ts') === -1) {
config.resolve.extensions.push('.ts') config.resolve.extensions.push('.ts')