# HG changeset patch # User Oscar Cortez # Date 1609292514 21600 # Tue Dec 29 19:41:54 2020 -0600 # Node ID 7a9c3482e54b4ba2455a7c6ce67b34dca3dfc5fd # Parent 64874f4f00704f502d5cdf2206889dd251524901 Remove sass usage and move babel config to package.json file diff --git a/babelrc.config.js b/babelrc.config.js deleted file mode 100644 --- a/babelrc.config.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = { - presets: [ - "@babel/preset-env", - ], - plugins: [ - '@babel/plugin-transform-runtime', - ['@babel/plugin-proposal-class-properties', { 'loose': true }], - ['@babel/plugin-proposal-decorators', { 'legacy': true }], - '@babel/plugin-transform-async-to-generator', - '@babel/plugin-transform-arrow-functions', - '@babel/plugin-proposal-object-rest-spread', - '@babel/plugin-proposal-export-default-from' - ] -} \ No newline at end of file diff --git a/package.json b/package.json --- a/package.json +++ b/package.json @@ -37,20 +37,28 @@ "@babel/plugin-transform-runtime": "^7.12.10", "@babel/preset-env": "^7.12.11", "@babel/preset-react": "^7.12.10", - "autoprefixer": "^9.8.6", "babel-loader": "^8.2.2", "config": "^3.3.3", "css-loader": "^3.6.0", - "cssnano": "^4.1.10", "html-webpack-plugin": "^3.2.0", - "node-sass": "^4.14.1", - "postcss-loader": "^3.0.0", - "sass-loader": "^8.0.2", "style-loader": "^1.3.0", "webpack": "^4.44.2", "webpack-cli": "^3.3.12", "webpack-dev-server": "^3.11.0", "prettier": "^2.2.1" }, - "dependencies": {} + "babel": { + "presets": [ + "@babel/preset-env" + ], + "plugins": [ + "@babel/plugin-transform-runtime", + ["@babel/plugin-proposal-class-properties", { "loose": true }], + ["@babel/plugin-proposal-decorators", { "legacy": true }], + "@babel/plugin-transform-async-to-generator", + "@babel/plugin-transform-arrow-functions", + "@babel/plugin-proposal-object-rest-spread", + "@babel/plugin-proposal-export-default-from" + ] + } } diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 --- a/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: [ - require('autoprefixer'), - require('cssnano'), - ] -}; \ No newline at end of file diff --git a/src/index.js b/src/index.js --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -import './styles.scss'; +import './styles.css'; import defaultConfig from './lib/config'; import ValidationError from './lib/error'; import { QuestionTemplate, AnswerTemplate, ResultTemplate } from './lib/dom'; diff --git a/src/styles.scss b/src/styles.css rename from src/styles.scss rename to src/styles.css diff --git a/webpack.config.js b/webpack.config.js --- a/webpack.config.js +++ b/webpack.config.js @@ -32,8 +32,8 @@ use: ['babel-loader'] }, { - test: /\.scss$/, - use: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader'] + test: /\.css$/, + use: ['style-loader', 'css-loader'] } ] },