mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Add Sass CSS
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* This file is for your main application css. */
|
||||
|
||||
@import "./main.css";
|
||||
@import "./main.scss";
|
||||
@import "./email.scss";
|
||||
@@ -1 +0,0 @@
|
||||
/* Email styles */
|
||||
1
apps/fg_http/assets/css/email.scss
Normal file
1
apps/fg_http/assets/css/email.scss
Normal file
@@ -0,0 +1 @@
|
||||
/* Email Styles */
|
||||
1
apps/fg_http/assets/css/main.scss
Normal file
1
apps/fg_http/assets/css/main.scss
Normal file
@@ -0,0 +1 @@
|
||||
/* Main Styles */
|
||||
@@ -1,7 +1,7 @@
|
||||
// We need to import the CSS so that webpack will load it.
|
||||
// The MiniCssExtractPlugin is used to separate it out into
|
||||
// its own CSS file.
|
||||
import css from "../css/app.css"
|
||||
import css from "../css/app.scss"
|
||||
|
||||
// webpack automatically bundles all modules in your
|
||||
// entry points. Those entry points can be configured
|
||||
|
||||
1279
apps/fg_http/assets/package-lock.json
generated
1279
apps/fg_http/assets/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -14,11 +14,16 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/preset-env": "^7.9.5",
|
||||
"autoprefixer": "^9.8.4",
|
||||
"babel-loader": "^8.1.0",
|
||||
"copy-webpack-plugin": "^5.1.1",
|
||||
"css-loader": "^3.5.2",
|
||||
"mini-css-extract-plugin": "^0.9.0",
|
||||
"node-sass": "^4.14.1",
|
||||
"optimize-css-assets-webpack-plugin": "^5.0.1",
|
||||
"postcss": "^7.0.32",
|
||||
"postcss-loader": "^3.0.0",
|
||||
"sass-loader": "^8.0.2",
|
||||
"terser-webpack-plugin": "^2.3.5",
|
||||
"webpack": "4.41.5",
|
||||
"webpack-cli": "^3.3.11"
|
||||
|
||||
5
apps/fg_http/assets/postcss.config.js
Normal file
5
apps/fg_http/assets/postcss.config.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
plugins: [
|
||||
require('autoprefixer'),
|
||||
]
|
||||
}
|
||||
@@ -36,7 +36,23 @@ module.exports = (env, options) => ({
|
||||
},
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: [MiniCssExtractPlugin.loader, 'css-loader']
|
||||
use: [
|
||||
MiniCssExtractPlugin.loader,
|
||||
{ loader: 'css-loader', options: { }},
|
||||
'postcss-loader'
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.sass$|\.scss$/,
|
||||
use: [
|
||||
MiniCssExtractPlugin.loader,
|
||||
{
|
||||
loader: 'css-loader',
|
||||
options: { },
|
||||
},
|
||||
{ loader: 'postcss-loader' },
|
||||
{ loader: 'sass-loader' }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user