Skip to content

Commit

Permalink
Use webpack server
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandSchtroumpf committed Nov 15, 2018
1 parent d6e3cc7 commit 5394ad1
Show file tree
Hide file tree
Showing 8 changed files with 2,010 additions and 417 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules
dist
dist

examples/*/dist
examples/*/node_modules
29 changes: 29 additions & 0 deletions examples/typescript-plugin/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "remix-plugin-typescript",
"version": "0.0.1",
"description": "A simple Remix Plugin written in Typescript",
"scripts": {
"start": "webpack-dev-server"
},
"keywords": [
"Remix",
"Plugin",
"Typescript"
],
"author": "François Guezengar",
"license": "MIT",
"dependencies": {
"remix-plugin": "AUTO"
},
"devDependencies": {
"clean-webpack-plugin": "^1.0.0",
"css-loader": "^1.0.1",
"html-webpack-plugin": "^3.2.0",
"style-loader": "^0.23.1",
"ts-loader": "^5.3.0",
"typescript": "^3.1.6",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.10"
}
}
2 changes: 1 addition & 1 deletion examples/typescript-plugin/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Simple Plugin</title>
<title>Typescript Plugin</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<script src="main.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript-plugin/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RemixExtension } from '../../../src/client'
import { RemixExtension } from 'remix-plugin'

const extension = new RemixExtension()

Expand Down
5 changes: 4 additions & 1 deletion examples/typescript-plugin/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ module.exports = {
mode: 'development',
entry: path.resolve(__dirname, 'src/main.ts'),
devtool: 'inline-source-map',
devServer: {
contentBase: './dist'
},
plugins: [
new CleanWebpackPlugin(['dist']),
new HtmlWebpackPlugin({
title: 'Simple Plugin',
title: 'Typescript Plugin',
}),
],
module: {
Expand Down
Loading

0 comments on commit 5394ad1

Please sign in to comment.