Skip to content

Commit

Permalink
[TASK] Compile css (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott authored and susannemoog committed Apr 5, 2019
1 parent 3ce7104 commit d2537ea
Show file tree
Hide file tree
Showing 9 changed files with 22,484 additions and 7,762 deletions.
3 changes: 2 additions & 1 deletion Build/Vue/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "vue-testing2",
"name": "typo3-filelist",
"version": "0.1.0",
"private": true,
"scripts": {
"build": "vue-cli-service build",
"build-lib": "vue-cli-service build --target lib --name filelist ./src/main.ts",
"config-inspect": "vue-cli-service inspect",
"lint": "vue-cli-service lint",
"test:e2e": "vue-cli-service test:e2e",
"test:unit": "vue-cli-service test:unit",
Expand Down
2 changes: 2 additions & 0 deletions Build/Vue/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import './styles/index.scss';

import Vue from 'vue';
import App from './App';
import store from './store/store';
Expand Down
1 change: 1 addition & 0 deletions Build/Vue/src/styles/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "modules/clean-me";
File renamed without changes.
45 changes: 25 additions & 20 deletions Build/Vue/vue.config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
const path = require("path");

module.exports = {
outputDir: path.resolve(__dirname, "../../Resources/Public/JavaScript/Library/"),
configureWebpack: {
devServer: {
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': '*',
},
outputDir: path.resolve(__dirname, "../../Resources/Public/JavaScript/Library/"),
productionSourceMap: false,
filenameHashing: false,
css: {
extract: true,
},
externals: [
{
// Object
vue$: {
commonjs: 'Vue',
amd: 'Vue',
root: 'Vue' // indicates global variable
configureWebpack: {
devServer: {
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': '*',
},
},
},
'TYPO3/CMS/Backend/Icons',
'TYPO3/CMS/Backend/Modal',
'moment'
],
}
externals: [
{
// Object
vue$: {
commonjs: 'Vue',
amd: 'Vue',
root: 'Vue' // indicates global variable
},
},
'TYPO3/CMS/Backend/Icons',
'TYPO3/CMS/Backend/Modal',
'moment'
],
}
};
2 changes: 1 addition & 1 deletion Classes/Controller/DigitalAssetManagementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function handleRequest(ServerRequestInterface $request): ResponseInterfac
$pageRenderer = $this->moduleTemplate->getPageRenderer();
$pageRenderer->loadRequireJsModule('TYPO3/CMS/DigitalAssetManagement/DigitalAssetManagementActions');
$pageRenderer->addCssFile('EXT:backend/Resources/Public/Css/backend.css');
$pageRenderer->addCssFile('EXT:digital_asset_management/Build/Vue/public/app.css');
$pageRenderer->addCssFile('EXT:digital_asset_management/Resources/Public/JavaScript/Library/filelist.css');
$pageRenderer->addInlineLanguageLabelFile('EXT:digital_asset_management/Resources/Private/Language/locallang_mod.xlf');
$pageRenderer->addInlineLanguageLabelFile('EXT:digital_asset_management/Resources/Private/Language/locallang_vue.xlf');
$pageRenderer->addInlineLanguageLabelFile('EXT:core/Resources/Private/Language/locallang_core.xlf', 'file_upload');
Expand Down
1 change: 1 addition & 0 deletions Resources/Public/JavaScript/Library/filelist.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d2537ea

Please sign in to comment.