Skip to content

Commit

Permalink
processing scss styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-swf committed Aug 30, 2021
1 parent 2dd66f5 commit 0a5cc71
Show file tree
Hide file tree
Showing 14 changed files with 2,443 additions and 104 deletions.
13 changes: 13 additions & 0 deletions config/rollup.config.dev.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import typescript from '@rollup/plugin-typescript';
import postcssUrl from 'postcss-url';
import browserSync from 'rollup-plugin-browsersync';
import postcss from 'rollup-plugin-postcss';

const pkg = require('../package.json');
const bsConfig = require('./bs-config');
Expand All @@ -12,6 +14,17 @@ export default {
],
treeshake: false,
plugins: [
postcss({
extract: 'phaser-runtime-editor-styles.css',
// minimize: true,

modules: {
generateScopedName: "[hash:base64:5]"
},
plugins: [
postcssUrl({ url: 'inline' })
]
}),
typescript({
rootDir: './src',
tsconfig: 'tsconfig.json',
Expand Down
4 changes: 2 additions & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<title>Example</title>
<script src="/js/phaser.js"></script>
<script src="/js/index.js"></script>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="phaser-runtime-editor-styles.css" />
<link rel="stylesheet" href="./styles.css" type="text/css" />
<link rel="stylesheet" href="./js/phaser-runtime-editor-styles.css" type="text/css" />
</head>
<body>
<div id="game" class="phred-game"></div>
Expand Down
63 changes: 0 additions & 63 deletions example/phaser-runtime-editor-styles.css

This file was deleted.

Loading

0 comments on commit 0a5cc71

Please sign in to comment.