mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
build: ts config for renderer
This commit is contained in:
@ -44,7 +44,7 @@ const config = {
|
||||
'@': path.resolve(__dirname, 'src/renderer'),
|
||||
common: path.resolve(__dirname, 'src/common')
|
||||
},
|
||||
extensions: ['', '.js', '.vue', '.json'],
|
||||
extensions: ['', '.js', '.vue', '.ts', '.json'],
|
||||
fallback: {
|
||||
fs: false,
|
||||
path: false,
|
||||
@ -88,13 +88,22 @@ const config = {
|
||||
use: 'babel-loader',
|
||||
exclude: /node_modules/
|
||||
},
|
||||
{
|
||||
test: /\.vue$/,
|
||||
loader: 'vue-loader'
|
||||
},
|
||||
{
|
||||
test: /\.node$/,
|
||||
use: 'node-loader'
|
||||
},
|
||||
{
|
||||
test: /\.vue$/,
|
||||
loader: 'vue-loader'
|
||||
test: /\.ts$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
appendTsSuffixTo: [/.vue$/],
|
||||
transpileOnly: true
|
||||
}
|
||||
},
|
||||
{
|
||||
test: /\.s(c|a)ss$/,
|
||||
|
Reference in New Issue
Block a user