Use TS-lodaer instead ow atl
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// Shared config (dev and prod)
|
||||
const {resolve} = require("path");
|
||||
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
|
||||
const {CheckerPlugin} = require("awesome-typescript-loader");
|
||||
const StyleLintPlugin = require("stylelint-webpack-plugin");
|
||||
const webpack = require('webpack');
|
||||
const Dotenv = require("dotenv-webpack");
|
||||
@@ -27,7 +26,7 @@ module.exports = function (env, argv) {
|
||||
});
|
||||
config.module.rules.push({
|
||||
test: /\.tsx?$/,
|
||||
use: ["babel-loader", "awesome-typescript-loader"]
|
||||
use: ["babel-loader", "ts-loader"]
|
||||
});
|
||||
|
||||
config.module.rules.push({
|
||||
@@ -45,7 +44,6 @@ module.exports = function (env, argv) {
|
||||
|
||||
config.plugins = [
|
||||
new webpack.DefinePlugin(envVars),
|
||||
new CheckerPlugin(),
|
||||
new StyleLintPlugin(),
|
||||
new Dotenv({
|
||||
path: "./.env"
|
||||
|
||||
Reference in New Issue
Block a user