corretto altro ts...

ora manca ancora il vuelidate
This commit is contained in:
paolo
2018-11-08 01:09:33 +01:00
parent 6811202571
commit 6522a88eb7
34 changed files with 537 additions and 339 deletions

View File

@@ -21,6 +21,17 @@ const extendTypescriptToWebpack = (config) => {
})
};
const extendHTMLToWebpack = (config) => {
config.resolve
.extensions
.add('.html');
config.module
.rule('html')
.test(/\.html?$/)
.use('html')
.loader('vue-html-loader')
};
module.exports = function (ctx) {
return {
sourceFiles: {
@@ -42,6 +53,7 @@ module.exports = function (ctx) {
],
supportIE: false,
build: {
showProgress: true,
env: envparser(),
scopeHoisting: true,
vueRouterMode: 'history',
@@ -51,6 +63,7 @@ module.exports = function (ctx) {
// extractCSS: false,
chainWebpack(config) {
extendTypescriptToWebpack(config);
// extendHTMLToWebpack(config);
config.resolve
.alias
.set('~', __dirname)