-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rollup): Add rollup plugin for loading CCM
- Loading branch information
Showing
15 changed files
with
3,954 additions
and
5,727 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
node_modules | ||
examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
import babel from "@rollup/plugin-babel"; | ||
import commonjs from "@rollup/plugin-commonjs"; | ||
import nodeResolve from "@rollup/plugin-node-resolve"; | ||
import replace from "@rollup/plugin-replace"; | ||
import postcss from "rollup-plugin-postcss"; | ||
import autoprefixer from "autoprefixer"; | ||
import cssnano from "cssnano"; | ||
|
||
import ccm from "./ccm-plugin"; | ||
import babel from '@rollup/plugin-babel'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import nodeResolve from '@rollup/plugin-node-resolve'; | ||
import replace from '@rollup/plugin-replace'; | ||
import postcss from 'rollup-plugin-postcss'; | ||
import autoprefixer from 'autoprefixer'; | ||
import cssnano from 'cssnano'; | ||
import ccm from '@css-components/rollup'; | ||
|
||
export default { | ||
input: "./src/index.jsx", | ||
input: './src/index.jsx', | ||
output: { | ||
dir: "./public/dist", | ||
format: "esm", | ||
dir: './public/dist', | ||
format: 'esm', | ||
}, | ||
plugins: [ | ||
ccm(), | ||
commonjs(), | ||
babel({ babelHelpers: "bundled" }), | ||
nodeResolve({ extensions: [".js", ".jsx"] }), | ||
babel({ babelHelpers: 'bundled' }), | ||
nodeResolve({ extensions: ['.js', '.jsx'] }), | ||
replace({ | ||
"process.env.NODE_ENV": JSON.stringify("production"), | ||
'process.env.NODE_ENV': JSON.stringify('production'), | ||
}), | ||
postcss({ | ||
extract: true, | ||
plugins: [autoprefixer, cssnano], | ||
exclude: '**/*.ccm.css', | ||
}), | ||
], | ||
}; |
Oops, something went wrong.