Skip to content

Commit

Permalink
feat: Included css file to dist dir #77
Browse files Browse the repository at this point in the history
  • Loading branch information
hamalt committed Aug 16, 2022
1 parent 6448f87 commit c7d5460
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 78 deletions.
14 changes: 13 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import esbuild from 'rollup-plugin-esbuild';
import livereload from 'rollup-plugin-livereload';
import serve from 'rollup-plugin-serve';
import eslint from '@rollup/plugin-eslint';
import scss from 'rollup-plugin-scss';

import * as path from 'path';

Expand Down Expand Up @@ -34,7 +35,7 @@ export default [
name: moduleNameUpper,
file: pkg.browser,
format: 'iife',
sourcemap: 'inline',
sourcemap: production ? false : 'inline',
banner
},
// minified
Expand All @@ -53,6 +54,11 @@ export default [
}
],
plugins: [
scss({
output: 'dist/scsaver.min.css',
sourceMap: !production,
outputStyle: production ? 'compressed' : 'expanded',
}),
pluginCommonjs({
extensions: ['.js', '.ts'],
}),
Expand Down Expand Up @@ -89,6 +95,9 @@ export default [
...Object.keys(pkg.devDependencies || {}),
],
plugins: [
scss({
output: false
}),
pluginCommonjs({
extensions: ['.js', '.ts'],
}),
Expand Down Expand Up @@ -119,6 +128,9 @@ export default [
...Object.keys(pkg.devDependencies || {}),
],
plugins: [
scss({
output: false
}),
pluginCommonjs({
extensions: ['.js', '.ts'],
}),
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default } from './scsaver.js';
import "./scsaver.scss";
76 changes: 0 additions & 76 deletions src/scsaver.css

This file was deleted.

1 change: 0 additions & 1 deletion src/scsaver.css.map

This file was deleted.

0 comments on commit c7d5460

Please sign in to comment.